Eryk Sun <[email protected]> added the comment:
The supported range depends on the platform. The C runtime library in Windows
can handle dates through the year 3000 [1]:
>>> datetime.fromtimestamp(32536799999)
datetime.datetime(3001, 1, 19, 7, 59, 59)
>>> datetime.fromtimestamp(32536800000)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 22] Invalid argument
---
[1]
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/gmtime-gmtime32-gmtime64?view=msvc-160
----------
nosy: +eryksun
resolution: -> third party
stage: -> resolved
status: open -> closed
type: crash -> behavior
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue45031>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com