[Python-ideas] use gmtime(0) epoch in functions that use mktime()

MRAB python at mrabarnett.plus.com
Sat Sep 6 19:32:01 CEST 2014


On 2014-09-06 18:06, Guido van Rossum wrote:
> There used to be systems with a different notion of epoch. Are there
> still such systems around? OSX has the UNIX epoch -- what's it gmtime(0)
> on Windows?
>
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 
bit (AM
D64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.gmtime(0)
time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, 
tm_sec=
0, tm_wday=3, tm_yday=1, tm_isdst=0)
>>>
[snip]



More information about the Python-ideas mailing list