Staging
v0.5.1
https://github.com/python/cpython
Revision e7e58fe03175adc660c192e724b91ae7ccba9cb6 authored by Benjamin Peterson on 08 October 2019, 01:54:05 UTC, committed by GitHub on 08 October 2019, 01:54:05 UTC
(cherry picked from commit 10c452b894d95fed06056fe11e8fe8e1a2a60040)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
1 parent c5abd63
Raw File
Tip revision: e7e58fe03175adc660c192e724b91ae7ccba9cb6 authored by Benjamin Peterson on 08 October 2019, 01:54:05 UTC
[2.7] bpo-37664: Update ensurepip bundled wheels, again (GH-16633)
Tip revision: e7e58fe
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);

/* Get the current time since the epoch in seconds */
PyAPI_FUNC(double) _PyTime_FloatTime(void);


#ifdef __cplusplus
}
#endif
#endif  /* TIMEFUNCS_H */
back to top