Staging
v0.5.1
https://github.com/python/cpython
Revision 07fec3aa5a7c9fb6b1f8bae6bf6773892a702ea0 authored by Georg Brandl on 01 August 2006, 18:49:24 UTC, committed by Georg Brandl on 01 August 2006, 18:49:24 UTC
1 parent 86e1e38
Raw File
Tip revision: 07fec3aa5a7c9fb6b1f8bae6bf6773892a702ea0 authored by Georg Brandl on 01 August 2006, 18:49:24 UTC
os.urandom no longer masks unrelated exceptions like SystemExit or
Tip revision: 07fec3a
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