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 joris.geysens
Recipients eric.smith, joris.geysens
Date 2022-03-01.15:47:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646149638.41.0.0208498931237.issue46856@roundup.psfhosted.org>
In-reply-to
Content
I looked at this a bit more in detail.
What happens it the following, starting in the datetime fromtimestamp fragment :

converter = _time.gmtime if utc else _time.localtime
y, m, d, hh, mm, ss, weekday, jday, dst = converter(t)

That will call the system gmtime_r(), which indeed returns Sat Jan  1 00:00:00 10000

I have not looked at the cpp implementation for that method and I am not sure if this is something that can be improved.
History
Date User Action Args
2022-03-01 15:47:18joris.geysenssetrecipients: + joris.geysens, eric.smith
2022-03-01 15:47:18joris.geysenssetmessageid: <1646149638.41.0.0208498931237.issue46856@roundup.psfhosted.org>
2022-03-01 15:47:18joris.geysenslinkissue46856 messages
2022-03-01 15:47:18joris.geysenscreate