Hacker News new | ask | show | jobs
by AdamN 3593 days ago
PEP 495 - Local Time Disambiguation (folding) handles this in Python 3.6 quite elegantly:

https://www.python.org/dev/peps/pep-0495/

It adds an extra attribute 'fold' that can be '0' (the default) for normal times and '1' for the later version with that same local time representation in the case of the clock going backwards.