summaryrefslogtreecommitdiffstats
path: root/Include/pytime.h
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2012-04-19 22:07:49 (GMT)
committerLarry Hastings <larry@hastings.org>2012-04-19 22:07:49 (GMT)
commit6fe20b3aee076850e390ef8bb2078b1cd09ddf88 (patch)
tree235f93dbd1d92f3983b6e4a4f1d84db296420365 /Include/pytime.h
parentdd5aa36f179011f390a0cc6fb4ba7bba1764f1a9 (diff)
downloadcpython-6fe20b3aee076850e390ef8bb2078b1cd09ddf88.zip
cpython-6fe20b3aee076850e390ef8bb2078b1cd09ddf88.tar.gz
cpython-6fe20b3aee076850e390ef8bb2078b1cd09ddf88.tar.bz2
Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.
Diffstat (limited to 'Include/pytime.h')
-rw-r--r--Include/pytime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pytime.h b/Include/pytime.h
index 0473dc7..221279b 100644
--- a/Include/pytime.h
+++ b/Include/pytime.h
@@ -44,6 +44,10 @@ PyAPI_FUNC(int) _PyTime_ObjectToTime_t(
PyObject *obj,
time_t *sec);
+/* Convert a time_t to a PyLong. */
+PyAPI_FUNC(PyObject *) _PyLong_FromTime_t(
+ time_t sec);
+
/* Convert a number of seconds, int or float, to a timeval structure.
usec is in the range [0; 999999] and rounded towards zero.
For example, -1.2 is converted to (-2, 800000). */