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 Alexandre Ouellet
Recipients Alexandre Ouellet, ned.deily, paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware
Date 2019-09-20.14:55:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568991316.62.0.929906860007.issue38233@roundup.psfhosted.org>
In-reply-to
Content
in a python console on a windows machine:

import datetime
d = datetime.datetime.fromtimestamp(0)
d
>datetime.datetime(1969, 12, 31, 19, 0)
d.timestamp()
>OSError: [Errno 22] Invalid argument

on a macOS machine : 

d = datetime.datetime.fromtimestamp(-1)
d
>datetime.datetime(1969, 12, 31, 19, 0)
d.timestamp()
>-1.0

both machines running 3.6.9

I would expect them have the same behaviour.
History
Date User Action Args
2019-09-20 14:55:16Alexandre Ouelletsetrecipients: + Alexandre Ouellet, paul.moore, ronaldoussoren, tim.golden, ned.deily, zach.ware, steve.dower
2019-09-20 14:55:16Alexandre Ouelletsetmessageid: <1568991316.62.0.929906860007.issue38233@roundup.psfhosted.org>
2019-09-20 14:55:16Alexandre Ouelletlinkissue38233 messages
2019-09-20 14:55:16Alexandre Ouelletcreate