Issue #2047: shutil.move() could believe that its destination path was
[python.git] / Include / timefuncs.h
blob553142dba0fcd76f0429ac6de23ddce88628e406
1 /* timefuncs.h
2 */
4 /* Utility function related to timemodule.c. */
6 #ifndef TIMEFUNCS_H
7 #define TIMEFUNCS_H
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
13 /* Cast double x to time_t, but raise ValueError if x is too large
14 * to fit in a time_t. ValueError is set on return iff the return
15 * value is (time_t)-1 and PyErr_Occurred().
17 PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);
20 #ifdef __cplusplus
22 #endif
23 #endif /* TIMEFUNCS_H */