Message272175
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) |
|
Date |
User |
Action |
Args |
2016-08-08 16:18:06 | belopolsky | set | recipients:
+ belopolsky |
2016-08-08 16:18:06 | belopolsky | set | messageid: <1470673086.15.0.122790254735.issue27711@psf.upfronthosting.co.za> |
2016-08-08 16:18:06 | belopolsky | link | issue27711 messages |
2016-08-08 16:18:05 | belopolsky | create | |
|