On Sun, Aug 16, 2015 at 2:34 PM, Tim Peters <[email protected]> wrote:
> Just noting that the "Guidelines for new tzinfo implementations"
> section uses the term "hour" when discussing DST transitions, which it
> defines as
>
>     hour = timedelta(hours=1)
>
> The confusion here is that DST adjustments aren't always an hour.

Yes, I was planning to change that to "delta".  Note that in the
reference implementation, I added a case using Lord Hope Island time
zone that has a 30 min DST delta.   I'll make sure  Antarctica/Troll
is supported correctly as well.

> If I were you, I'd leave the text alone, but add a footnote explaining
> that things may need to be adjusted in the obvious ways for timezones
> with oddball DST adjustments and/or more than one kind of DST per
> year.

Makes sense.  The US-style DST rules are confusing enough that we
probably don't want to complicate the discussion.  I'll add a
footnote.
_______________________________________________
Datetime-SIG mailing list
[email protected]
https://mail.python.org/mailman/listinfo/datetime-sig
The PSF Code of Conduct applies to this mailing list: 
https://www.python.org/psf/codeofconduct/

Reply via email to