Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.

This commit is contained in:
Larry Hastings 2012-04-19 15:07:49 -07:00
parent dd5aa36f17
commit 6fe20b3aee
6 changed files with 96 additions and 33 deletions

View file

@ -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). */