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 janripke
Recipients janripke, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-08-27.14:52:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1630075942.93.0.0506592878726.issue45031@roundup.psfhosted.org>
In-reply-to
Content
When executing the following statement on a Windows machine it fails.
On a linux machine it returns the expected date (9999-31-12 00:00:00)
The Error we get on Windows is:
OSError: [Errno 22] Invalid argument

In another manor it was reported before:
https://bugs.python.org/issue29097


The code:
from datetime import datetime

epoch_time = 253402210800000/1000
print(datetime.fromtimestamp(epoch_time))
History
Date User Action Args
2021-08-27 14:52:22janripkesetrecipients: + janripke, paul.moore, tim.golden, zach.ware, steve.dower
2021-08-27 14:52:22janripkesetmessageid: <1630075942.93.0.0506592878726.issue45031@roundup.psfhosted.org>
2021-08-27 14:52:22janripkelinkissue45031 messages
2021-08-27 14:52:22janripkecreate