Staging
v0.5.1
https://github.com/python/cpython
Revision 107b27eee013f0747ba133886f87aacc7f451030 authored by Miss Islington (bot) on 06 December 2018, 21:34:15 UTC, committed by GitHub on 06 December 2018, 21:34:15 UTC
(cherry picked from commit c9566b8c454120e3d0ddb5ab970f262a6cd80077)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
1 parent 49cedc5
Raw File
Tip revision: 107b27eee013f0747ba133886f87aacc7f451030 authored by Miss Islington (bot) on 06 December 2018, 21:34:15 UTC
Add missing period in distutils.dep_util.newer_group doc (GH-11003)
Tip revision: 107b27e
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