Staging
v0.5.1
https://github.com/python/cpython
Revision bef8d9acda7a4b9203e55371bb7a7da1c4a7fcbe authored by Miss Islington (bot) on 14 October 2019, 22:22:18 UTC, committed by Ned Deily on 14 October 2019, 22:22:18 UTC
(cherry picked from commit 4504b4500d2a1a80c26b27b0bfff8b624d5ce06c)

Co-authored-by: Julien Palard <julien@palard.fr>
1 parent 2c9d70a
Raw File
Tip revision: bef8d9acda7a4b9203e55371bb7a7da1c4a7fcbe authored by Miss Islington (bot) on 14 October 2019, 22:22:18 UTC
Doc: 3.8 is now stable. (GH-16790) (GH-16794)
Tip revision: bef8d9a
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