Staging
v0.5.1
https://github.com/python/cpython
Revision beb572b50ae7fc0ab95be8b91eab877bc630e874 authored by Andrew M. Kuchling on 06 July 2006, 13:57:28 UTC, committed by Andrew M. Kuchling on 06 July 2006, 13:57:28 UTC
1 parent 2d79225
Raw File
Tip revision: beb572b50ae7fc0ab95be8b91eab877bc630e874 authored by Andrew M. Kuchling on 06 July 2006, 13:57:28 UTC
ImportWarning is now silent by default
Tip revision: beb572b
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