[issue27711] datetime.utctimetuple() method should respect fold disambiguation

2016-08-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This would be a feature not anticipated by PEP 495. -- resolution: -> rejected status: open -> closed type: behavior -> enhancement ___ Python tracker __

[issue27711] datetime.utctimetuple() method should respect fold disambiguation

2016-08-08 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: 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 >>