Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: 84332f91ee463d2e097342964ec304a7c902c1e6 authored by Anthony Baxter on 10 October 2006, 17:28:33 UTC
what month is it again? I get confused...
Tip revision: 84332f9
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