]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.10/Include/timefuncs.h
AppPkg/Applications/Python/Python-2.7.10: Initial Checkin part 1/5.
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Include / timefuncs.h
CommitLineData
c8042e10
DM
1/* timefuncs.h\r
2 */\r
3\r
4/* Utility function related to timemodule.c. */\r
5\r
6#ifndef TIMEFUNCS_H\r
7#define TIMEFUNCS_H\r
8#ifdef __cplusplus\r
9extern "C" {\r
10#endif\r
11\r
12\r
13/* Cast double x to time_t, but raise ValueError if x is too large\r
14 * to fit in a time_t. ValueError is set on return iff the return\r
15 * value is (time_t)-1 and PyErr_Occurred().\r
16 */\r
17PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x);\r
18\r
19/* Get the current time since the epoch in seconds */\r
20PyAPI_FUNC(double) _PyTime_FloatTime(void);\r
21\r
22\r
23#ifdef __cplusplus\r
24}\r
25#endif\r
26#endif /* TIMEFUNCS_H */\r