This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, janripke, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-08-28.03:08:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630120092.81.0.332810313574.issue45031@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-08-28 03:08:12eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, janripke
2021-08-28 03:08:12eryksunsetmessageid: <1630120092.81.0.332810313574.issue45031@roundup.psfhosted.org>
2021-08-28 03:08:12eryksunlinkissue45031 messages
2021-08-28 03:08:12eryksuncreate