Staging
v0.5.1
https://github.com/python/cpython
Revision ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab authored by Martin v. Löwis on 21 March 2011, 09:30:07 UTC, committed by Martin v. Löwis on 21 March 2011, 09:30:07 UTC
checkout (but a mercurial one). Closes #11579. Closes #11421.
Patch by Senthil Kumaran.
1 parent 197f7f6
Raw File
Tip revision: ce5d0e22fc307a22bf8410dbdd6b4f0190f36fab authored by Martin v. Löwis on 21 March 2011, 09:30:07 UTC
Set subversion version identification to empty strings if this is not a subversion
Tip revision: ce5d0e2
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