[Datetime-SIG] PEP-431/495

Alexander Belopolsky alexander.belopolsky at gmail.com
Thu Aug 27 17:07:41 CEST 2015


On Thu, Aug 27, 2015 at 10:38 AM, Akira Li <4kir4.1i at gmail.com> wrote:

> pytz recommends normalize() method instead of astimezone() here:
>
>   >>> tzlocal.get_localzone().normalize(pytz_time - timedelta(seconds=1))
>   datetime.datetime(2015, 10, 25, 2, 59, 59, tzinfo=<DstTzInfo
> 'Europe/Paris' CEST+2:00:00 DST>)
>
> The result is the same in this case.
>
> It is a _fact_. It is how python behaves now on my platform.
>

Isn't it surprising that when you use two different libraries according to
their respective specifications you get the same correct result!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150827/3460e051/attachment.html>


More information about the Datetime-SIG mailing list