[Datetime-SIG] The name of the UTC timezone

Guido van Rossum guido at python.org
Wed Aug 26 19:19:04 CEST 2015


OK, I guess we can change stdlib datetime.timezone.utc's str() to 'UTC'.
Make sure to update both the C and the Python version, and the tests, and
the docs. It's going to have to go into 3.6.



On Wed, Aug 26, 2015 at 9:38 AM, Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:

>
> On Wed, Aug 26, 2015 at 12:30 PM, Guido van Rossum <guido at python.org>
> wrote:
>
>> Why is this needed? When would a real app use %Z%z?
>
>
> Given that a bug report [1] exists, someone was tripped by the current
> behavior.  It is my understanding that "UTC" is one of the few timezone
> abbreviations that we recognize in strptime and the users expect strptime
> to be able to parse whatever strftime produces.
>
>
> [1]: http://bugs.python.org/issue22241
>



-- 
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20150826/9b3b67a3/attachment-0001.html>


More information about the Datetime-SIG mailing list