Staging
v0.5.1
https://github.com/python/cpython
Revision ebcd0ced14388d5859e4c57e9916a3f18e35e9c2 authored by Antoine Pitrou on 05 September 2008, 23:30:23 UTC, committed by Antoine Pitrou on 05 September 2008, 23:30:23 UTC
1 parent cdeb24b
Raw File
Tip revision: ebcd0ced14388d5859e4c57e9916a3f18e35e9c2 authored by Antoine Pitrou on 05 September 2008, 23:30:23 UTC
Issue #3535: zipfile couldn't read some zip files larger than 2GB.
Tip revision: ebcd0ce
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