[Datetime-SIG] Conversion vs arithmetic (was Re: Is EDT a timezone? Was: PEP-0500)

Alexander Belopolsky alexander.belopolsky at gmail.com
Tue Aug 25 02:15:18 CEST 2015


On Mon, Aug 24, 2015 at 8:07 PM, Guido van Rossum <guido at python.org> wrote:

> Sounds to me like Tim and Stuart disagree on the definition of conversion,
> though.


That's not surprising given that Tim's .fromutc() [1] *does not* change
.tzinfo  (so arguably it is not a timezone conversion) but *does* involve
arithmetic (because ignoring the DST nonsense, it is just dt +
dt.utcoffset()).

Fortunately, Tim has established that there are only two people in the
world that need to understand any of this, but Stuart is one of them. :-)

[1]: https://hg.python.org/cpython/file/v3.5.0rc1/Lib/datetime.py#l957
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150824/cebdcf17/attachment.html>


More information about the Datetime-SIG mailing list