Staging
v0.5.1
https://github.com/python/cpython
Revision e4133d8d6724bf7b7add4bad81666ff2a4d66a1a authored by Andrew M. Kuchling on 31 August 2004, 13:05:36 UTC, committed by Andrew M. Kuchling on 31 August 2004, 13:05:36 UTC
1 parent e34c3bd
Raw File
Tip revision: e4133d8d6724bf7b7add4bad81666ff2a4d66a1a authored by Andrew M. Kuchling on 31 August 2004, 13:05:36 UTC
Use correct constant; remove reference to TERMIOS.py
Tip revision: e4133d8
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