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 Paul Anton Letnes
Recipients Paul Anton Letnes, Tiger-222, p-ganssle, steve.dower
Date 2020-06-10.13:55:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591797316.7.0.214511706839.issue36439@roundup.psfhosted.org>
In-reply-to
Content
I've encountered an issue on anaconda python on windows 10 v1909 which I suspect is related. It looks like no dates in 1970 can be converted to datetime.timestamp():

Python 3.8.2 (default, Apr 14 2020, 19:01:40) [MSC v.1916 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import datetime

In [2]: datetime.datetime(1970, 1, 2, 0, 0, 1, 123456).timestamp()
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-2-0ac473af013b> in <module>
----> 1 datetime.datetime(1970, 1, 2, 0, 0, 1, 123456).timestamp()

OSError: [Errno 22] Invalid argument

In [3]: datetime.datetime(1971, 1, 2, 0, 0, 1, 123456).timestamp()
Out[3]: 31618801.123456
History
Date User Action Args
2020-06-10 13:55:16Paul Anton Letnessetrecipients: + Paul Anton Letnes, steve.dower, p-ganssle, Tiger-222
2020-06-10 13:55:16Paul Anton Letnessetmessageid: <1591797316.7.0.214511706839.issue36439@roundup.psfhosted.org>
2020-06-10 13:55:16Paul Anton Letneslinkissue36439 messages
2020-06-10 13:55:16Paul Anton Letnescreate