On Thu, Aug 27, 2015 at 10:38 AM, Akira Li <[email protected]> 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!
_______________________________________________ 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/
