Staging
v0.5.1
https://github.com/python/cpython
Revision 5e6a594ab1f38b9a2c92a8d44f2d8f191327ba9c authored by Armin Rigo on 20 September 2005, 19:04:42 UTC, committed by Armin Rigo on 20 September 2005, 19:04:42 UTC
1 parent 601c7f9
Raw File
Tip revision: 5e6a594ab1f38b9a2c92a8d44f2d8f191327ba9c authored by Armin Rigo on 20 September 2005, 19:04:42 UTC
C89 compliance.
Tip revision: 5e6a594
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