Re: [Datetime-SIG] PEP 495 and the hardest problem in computer science
On Wed, Jun 29, 2016, at 13:11, Alexander Belopolsky wrote:
I came across this blog post [1] by Dan Nguyen and wanted to share it with the group.
[1]: http://blog.danwin.com/pep-495-and-the-hardest-problem-in-computer-science/
But if I were asking that question in real life, I'd say "Before or after the time change?", which is understood by all to be an upcoming time change from DST to non-DST. A more compelling argument is that it applies equally to *other* time changes such as a region adopting a different time zone offset. But all of this is only necessary because of the peculiar way that Python conceptualizes "naive" local times as independent of any zone. Of course, naive times that care about the 'fold' are only portable to other timezones that have a fold at the same local time - e.g. among US timezones (which all have a fold from 2AM to 1AM local) but not EU timezones (which all transition at the same UTC time and therefore different local times).
participants (1)
-
Random832