[Datetime-SIG] Another round on error-checking

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Sep 2 18:54:56 CEST 2015

On Tue, Sep 1, 2015 at 5:56 PM, Tim Peters <tim.peters at gmail.com> wrote:

> Paying attention to fold=1 in naive time does muddy the naive-time
> concept.  A little.  But it should hardly ever matter:  even using a
> 495 tzinfo, there is nothing a user working _in_ naive time can do to
> see a fold=1 value.  They have to force it by hand, or use an
> operation _outside_ of naive time (like .astimezone()) to get one.

There are two more cases:

(1) datetime.now() will return fold=1 instances during one hour each year;
(2) datetime.fromtimestamp(s) will return fold=1 instances for some values
of s.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150902/2c22e4da/attachment.html>

More information about the Datetime-SIG mailing list