[Datetime-SIG] PEP-431/495

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Aug 21 18:59:08 CEST 2015


On Fri, Aug 21, 2015 at 8:07 AM, Stuart Bishop <stuart at stuartbishop.net>
wrote:

> - The rules in PEP-495 for utcoffset() and dst() to deal with
> ambiguous times only work in simple cases, as there dst offsets both
> more and less than 1 hour, and there is no stdoffset since the offset
> can change at the same time (eg. Europe/Vilnius 1941, where the clocks
> ended up going backwards for summer time instead of forwards).
>

Instead of engaging in a theoretical discussion, I went ahead and added
this transition as a test case to my reference implementation.  Please
review [1] and let me know if you see any issues.

[1]:
https://github.com/abalkin/cpython/commit/9f683c8d0f6f2b48aad81ae4e5e8a118a542d2d4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150821/43d6fed5/attachment.html>


More information about the Datetime-SIG mailing list