Staging
v0.5.1
https://github.com/python/cpython
Revision ebed3f629b9adedddca4f0d1d3e2408ea560a06f authored by Anthony Baxter on 03 April 2006, 15:03:44 UTC, committed by Anthony Baxter on 03 April 2006, 15:03:44 UTC
1 parent 70e0796
Raw File
Tip revision: ebed3f629b9adedddca4f0d1d3e2408ea560a06f authored by Anthony Baxter on 03 April 2006, 15:03:44 UTC
preparation for 2.5a1
Tip revision: ebed3f6
timefuncs.h
/*  timefuncs.h
 */

/* Utility function related to timemodule.c. */

#ifndef TIMEFUNCS_H
#define TIMEFUNCS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Cast double x to time_t, but raise ValueError if x is too large
 * to fit in a time_t.  ValueError is set on return iff the return
 * value is (time_t)-1 and PyErr_Occurred().
 */
PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);


#ifdef __cplusplus
}
#endif
#endif  /* TIMEFUNCS_H */
back to top