summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2016-09-28 21:32:31 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2016-09-28 21:32:31 (GMT)
commit9f518cd01a21ec5162ca83da8feee733d50e376f (patch)
tree123492edd53d8b66148cbd7de9a139c823f105fa /Include
parente0083e2b86a116857db41894ec3cc96112af768e (diff)
parent3e7a3cb903258321a17265a1c01976f88e7b72fc (diff)
downloadcpython-9f518cd01a21ec5162ca83da8feee733d50e376f.zip
cpython-9f518cd01a21ec5162ca83da8feee733d50e376f.tar.gz
cpython-9f518cd01a21ec5162ca83da8feee733d50e376f.tar.bz2
Merged from 3.6
Diffstat (limited to 'Include')
-rw-r--r--Include/pytime.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Include/pytime.h b/Include/pytime.h
index 595fafc..87ac7fc 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