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 belopolsky
Recipients belopolsky
Date 2016-08-08.16:18:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1470673086.15.0.122790254735.issue27711@psf.upfronthosting.co.za>
In-reply-to
Content
With TZ = America/New_York:

>>> t0 = datetime(2016, 11, 6, 1, 30, fold=0)
>>> t1 = datetime(2016, 11, 6, 1, 30, fold=1)
>>> t0.utctimetuple()[:6]
(2016, 11, 6, 1, 30, 0)
>>> t1.utctimetuple()[:6]
(2016, 11, 6, 1, 30, 0)
>>> t0.timestamp()
1478410200.0
>>> t1.timestamp()
1478413800.0

The correct values for utctimetuple() should be the same as

>>> datetime.utcfromtimestamp(t0.timestamp()).timetuple()[:6]
(2016, 11, 6, 5, 30, 0)
>>> datetime.utcfromtimestamp(t1.timestamp()).timetuple()[:6]
(2016, 11, 6, 6, 30, 0)
History
Date User Action Args
2016-08-08 16:18:06belopolskysetrecipients: + belopolsky
2016-08-08 16:18:06belopolskysetmessageid: <1470673086.15.0.122790254735.issue27711@psf.upfronthosting.co.za>
2016-08-08 16:18:06belopolskylinkissue27711 messages
2016-08-08 16:18:05belopolskycreate