Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | #ifndef TIMEFUNCS_H |
2 | #define TIMEFUNCS_H | |
3 | #ifdef __cplusplus | |
4 | extern "C" { | |
5 | #endif | |
6 | ||
7 | ||
8 | /* Cast double x to time_t, but raise ValueError if x is too large | |
9 | * to fit in a time_t. ValueError is set on return iff the return | |
10 | * value is (time_t)-1 and PyErr_Occurred(). | |
11 | */ | |
12 | PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x); | |
13 | ||
14 | ||
15 | #ifdef __cplusplus | |
16 | } | |
17 | #endif | |
18 | #endif /* TIMEFUNCS_H */ |