Mercurial > repos > yating-l > jbrowsearchivecreator
comparison test/include/python2.7/timefuncs.h @ 3:7d1a9a91b989 draft
planemo upload for repository https://github.com/Yating-L/jbrowse-archive-creator.git commit d583ac16a6c6942730ea536eb59cc37941816030-dirty
author | yating-l |
---|---|
date | Thu, 18 May 2017 18:37:28 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:3e2160197902 | 3:7d1a9a91b989 |
---|---|
1 /* timefuncs.h | |
2 */ | |
3 | |
4 /* Utility function related to timemodule.c. */ | |
5 | |
6 #ifndef TIMEFUNCS_H | |
7 #define TIMEFUNCS_H | |
8 #ifdef __cplusplus | |
9 extern "C" { | |
10 #endif | |
11 | |
12 | |
13 /* Cast double x to time_t, but raise ValueError if x is too large | |
14 * to fit in a time_t. ValueError is set on return iff the return | |
15 * value is (time_t)-1 and PyErr_Occurred(). | |
16 */ | |
17 PyAPI_FUNC(time_t) _PyTime_DoubleToTimet(double x); | |
18 | |
19 /* Get the current time since the epoch in seconds */ | |
20 PyAPI_FUNC(double) _PyTime_FloatTime(void); | |
21 | |
22 | |
23 #ifdef __cplusplus | |
24 } | |
25 #endif | |
26 #endif /* TIMEFUNCS_H */ |