Files
cpython/Modules
Victor Stinner 1e2b6882fc Issue #25155: Add _PyTime_AsTimevalTime_t() function
On Windows, the tv_sec field of the timeval structure has the type C long,
whereas it has the type C time_t on all other platforms. A C long has a size of
32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not
enough to store an Epoch timestamp after the year 2038.

Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now():
convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t.
It allows to support dates after the year 2038 on Windows.

Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of
seconds when rounding the number of microseconds.
2015-09-18 13:23:02 +02:00
..
2015-07-29 14:35:12 +02:00
2015-07-16 22:20:19 +02:00
2015-09-09 03:01:17 +00:00
2014-02-04 10:12:18 -05:00
2014-10-28 22:24:46 +01:00
2015-07-18 11:00:00 -07:00
2015-03-18 16:05:32 +01:00
2015-04-13 14:21:02 -04:00
2015-08-02 12:16:45 -07:00
2015-07-24 00:43:44 -04:00
2015-09-15 10:24:27 +02:00
2015-08-01 21:38:04 -05:00
2015-04-13 22:00:30 +02:00
2015-09-11 12:38:17 +02:00
2015-06-27 15:45:56 -05:00
2015-06-27 15:45:56 -05:00
2015-06-27 15:45:56 -05:00
2015-04-13 14:21:02 -04:00

Source files for standard library extension modules,
and former extension modules that are now builtin modules.