[Python-Dev] Epoch and Platform

Daniel Stutzbach agthorr at barsoom.org
Tue Jun 17 19:24:57 CEST 2008


On Mon, Jun 16, 2008 at 6:38 PM, Guido van Rossum <guido at python.org> wrote:
> ISTR that we force the epoch to be 1970 on all major platforms -- or
> perhaps it happens to be 1970 even on Windows when using MS's C
> runtime.

I can confirm that Python under Windows does indeed use the Unix epoch:

Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.gmtime(0)
(1970, 1, 1, 0, 0, 0, 3, 1, 0)

-- 
Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises LLC


More information about the Python-Dev mailing list