Staging
v0.5.1
https://github.com/python/cpython
Revision 0712921ef993159a0e37cf986843a91833073ca5 authored by Barry Warsaw on 01 March 2010, 21:56:18 UTC, committed by Barry Warsaw on 01 March 2010, 21:56:18 UTC
because I did this in the wrong order and couldn't smack svnmerge into
submission.
1 parent 6fa06d4
Raw File
Tip revision: 0712921ef993159a0e37cf986843a91833073ca5 authored by Barry Warsaw on 01 March 2010, 21:56:18 UTC
Manually copy patch for bug 7250 from the release26-maint branch. I suck
Tip revision: 0712921
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