FAQ

On Wed, Sep 9, 2015 at 5:45 AM, Alexander Belopolsky wrote:
Definitions: An aware datetime value t is called "regular" if t.utcoffset()
does not depend on the value of the fold attribute.

One point to clarify here. Is the definition of "regular" based on the
timezone alone (that is to say, a UTC datetime is regular, and an
Australia/Brisbane datetime is regular, but anything in a region with
DST is always special), or are "special" datetimes only those in the
fold period?


The former is easily identified. As the zoneinfo file is parsed, it'll
be obvious which ones can ever have times that differ only in fold,
and they get flagged as "special". The check is simple - ask the
timezone object whether it's regular or special.


The latter, perhaps not so much. Given a particular datetime, can you
easily and reliably ascertain whether or not there is any other
section of time which can "look like" this one?


Maybe I've missed something, having been skimming rather than reading
every post in detail. (There have been rather a lot of them, and here
I am making that worse...)


ChrisA

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 20 of 26 | next ›
Discussion Overview
groupdatetime-sig @
categoriespython
postedSep 8, '15 at 1:57a
activeSep 9, '15 at 3:44p
posts26
users4
websitepython.org

People

Translate

site design / logo © 2017 Grokbase