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

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Sep 6 19:28:09 CEST 2014


On 06/09/2014 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?
>

 >>> 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)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Python-ideas mailing list