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 pekka.klarck
Recipients pekka.klarck
Date 2016-12-28.20:49:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
For example:

E:\>py -3.6 -c "import datetime; datetime.datetime.fromtimestamp(42)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 22] Invalid argument

Works fine at least with Python 2.6-2.7 and 3.3-3.5. Only tested on Windows (missing deadsnakes for easy Linux testing).

I was also surprised to get OSError in general, but apparently fromtimestamp uses that instead of ValueError nowadays in some error situations.
Date User Action Args
2016-12-28 20:49:20pekka.klarcksetrecipients: + pekka.klarck
2016-12-28 20:49:20pekka.klarcksetmessageid: <>
2016-12-28 20:49:20pekka.klarcklinkissue29097 messages
2016-12-28 20:49:19pekka.klarckcreate