[Datetime-SIG] Add a strftime/strptime code for timezone ID

Paul G paul at ganssle.io
Wed Nov 2 15:15:45 EDT 2016


Where would the tzid come from? It's not a standard feature of tzinfo, so wouldn't that involve changing the tzinfo API as well?

On November 2, 2016 2:33:50 PM EDT, Alexander Belopolsky <alexander.belopolsky at gmail.com> wrote:
>I propose to add a code %/ to strftime/strptime to print/parse the
>timezone
>name (tzid) such as Australia/Sydney or America/New_York.
>
>While the choice of code character can be debated, I like "/" because
>it is
>visually similar to "Z", can be associated with the Area-Region
>separator
>in the IANA timezone names and is unlikely to conflict with any other
>code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20161102/030174e8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 850 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/datetime-sig/attachments/20161102/030174e8/attachment.sig>


More information about the Datetime-SIG mailing list