Eryk Sun <eryk...@gmail.com> added the comment:

> The code of posixmodule.c looks very different now.

The conversion code was moved to FILE_TIME_to_time_t_nsec() in 
Python/fileutils.c. 

time_t is a signed 64-bit integer type, so there's no immediate problem storing 
1601-01-01 as the negative (pre-epoch) Unix timestamp -11644473600. But there 
are indirect problems with using negative Unix timestamps in Windows. In 
particular, datetime.fromtimestamp doesn't support them:

    >>> datetime.fromtimestamp(-11644473600)
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    OSError: [Errno 22] Invalid argument

----------
nosy: +eryksun
status: pending -> open

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue23946>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to