[Python-ideas] Reduce platform dependence of date and time related functions

Victor Stinner victor.stinner at gmail.com
Tue Sep 17 15:31:31 CEST 2013

2013/9/17  <random832 at fastmail.us>:
> I have an addition to this proposal: struct_time should always provide
> tm_gmtoff and tm_zone, gmtime should populate them with 0 and GMT*, and
> if the platform does not provide values localtime should populate them
> with timezone or altzone and values from tzname depending on if isdst is
> true after calling the platform localtime function.

In Python, "unknown" is usually written None. It's safer than filling
the structure with invalid values.


More information about the Python-ideas mailing list