https://github.com/python/cpython
Raw File
Tip revision: c251607d591ad8c0f117eb5e6118027c4ae1e8c6 authored by Benjamin Peterson on 08 May 2010, 17:08:17 UTC
bump version to 2.7 beta 2
Tip revision: c251607
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