Paul Ganssle <p.gans...@gmail.com> added the comment:

@Alex LordThorsen: It will accept EST if EST is one of your "local" time zones, 
so whatever's in `time.tzname`.

In the short term, I think the right thing to do would be to update the 
documentation to remove the reference to "EST", and add an explanatory note in 
the section about %Z that explains that it accepts a few hard-coded values + 
whatever's in `time.tzname`.

In the long run, I think the best "out of the box" support we can provide would 
be supporting %Z when %z is present (per Alexander's suggestion), and possibly 
something akin to `dateutil`'s "tzinfos", where a mapping between abbreviations 
and `tzinfo` objects could be passed to `strptime` explicitly.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22377>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to