Message382251
> 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 |
|
Date |
User |
Action |
Args |
2020-12-01 14:06:58 | eryksun | set | recipients:
+ eryksun, tim.golden, zach.ware, steve.dower, CristiFati, iritkatriel |
2020-12-01 14:06:58 | eryksun | set | messageid: <1606831618.96.0.438924821381.issue23946@roundup.psfhosted.org> |
2020-12-01 14:06:58 | eryksun | link | issue23946 messages |
2020-12-01 14:06:58 | eryksun | create | |
|