[Datetime-SIG] Are there any "correct" implementations of tzinfo?
Alexander Belopolsky
alexander.belopolsky at gmail.com
Sat Sep 12 21:55:58 CEST 2015
On Sat, Sep 12, 2015 at 3:38 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 09/12/2015 12:16 PM, random832 at fastmail.com wrote:
>
> If there is a "fall back" transition tonight, then adding a day to a
>> time of 12 noon today could end up as:
>>
>> (1) 12 noon tomorrow, offset still DST.
>> (2) 12 noon tomorrow, offset in standard time, 25 hours from now in real
>> time.
>> (3) 11 AM tomorrow, offset in standard time, 24 hours from now in real
>> time
>>
>
> I believe option 2 is the intended semantics.
This is correct. We call this behavior "classic arithmetic" on this list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150912/281d0c7d/attachment.html>
More information about the Datetime-SIG
mailing list