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

Ethan Furman ethan at stoneleaf.us
Tue Sep 17 23:15:51 CEST 2013

On 09/17/2013 01:58 PM, random832 wrote:
> On Tue, Sep 17, 2013, at 9:31, Victor Stinner wrote:
>> In Python, "unknown" is usually written None. It's safer than filling
>> the structure with invalid values.
> You can also determine gmtoff empirically by calling timegm and
> subtracting the original timestamp from the result. Or you could look at
> the seconds, minutes, hours, year, and yday members after calling both
> gmtime and localtime in the first place.

Is timegm/gmtime provided and consistent across all Python platforms?


More information about the Python-ideas mailing list