[issue45031] [Windows] datetime.fromtimestamp(t) when t = 253402210800 fails on Python 3.8

2021-08-27 Thread Eryk Sun
Eryk Sun 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(3253679) datetime.datetime(3001, 1, 19, 7, 59, 59) >>> datetime.fromtimestamp(3253680)

[issue45031] [Windows] datetime.fromtimestamp(t) when t = 253402210800 fails on Python 3.8

2021-08-27 Thread Jan Ripke
New submission from Jan Ripke : When executing the following statement on a Windows machine it fails. On a linux machine it returns the expected date (-31-12 00:00:00) The Error we get on Windows is: OSError: [Errno 22] Invalid argument In another manor it was reported before: