Staging
v0.5.1
Revision 900155fa42a78b2c0b5fb6d01bb81264162d9fdc authored by Mark Hammond on 18 September 2008, 03:51:46 UTC, committed by Mark Hammond on 18 September 2008, 03:51:46 UTC
later test failures.  As discussed on #python-dev
1 parent 9f381ec
Raw File
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