diff options
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2016-09-28 17:32:31 -0400 |
---|---|---|
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | 2016-09-28 17:32:31 -0400 |
commit | 9f518cd01a21ec5162ca83da8feee733d50e376f (patch) | |
tree | 123492edd53d8b66148cbd7de9a139c823f105fa /Include/pytime.h | |
parent | e0083e2b86a116857db41894ec3cc96112af768e (diff) | |
parent | 3e7a3cb903258321a17265a1c01976f88e7b72fc (diff) | |
download | cpython-git-9f518cd01a21ec5162ca83da8feee733d50e376f.tar.gz |
Merged from 3.6
Diffstat (limited to 'Include/pytime.h')
-rw-r--r-- | Include/pytime.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/pytime.h b/Include/pytime.h index 595fafc5c0..87ac7fcbba 100644 --- a/Include/pytime.h +++ b/Include/pytime.h @@ -184,6 +184,14 @@ PyAPI_FUNC(int) _PyTime_GetMonotonicClockWithInfo( Return 0 on success, raise an exception and return -1 on error. */ PyAPI_FUNC(int) _PyTime_Init(void); +/* Converts a timestamp to the Gregorian time, using the local time zone. + Return 0 on success, raise an exception and return -1 on error. */ +PyAPI_FUNC(int) _PyTime_localtime(time_t t, struct tm *tm); + +/* Converts a timestamp to the Gregorian time, assuming UTC. + Return 0 on success, raise an exception and return -1 on error. */ +PyAPI_FUNC(int) _PyTime_gmtime(time_t t, struct tm *tm); + #ifdef __cplusplus } #endif |