[New-bugs-announce] [issue17342] datetime.strptime does not implement %z

Zbyněk Winkler report at bugs.python.org
Sun Mar 3 15:25:10 CET 2013


New submission from Zbyněk Winkler:

According to http://docs.python.org/2/library/datetime.html#strftime-strptime-behavior the %z directive is used to specify the timezone offset  of the form +HHMM or -HHMM. However it is not implemented in datetime.strptime.

I'd prefer to have %z available in strptime but if not having it is a deliberate decision I think it should be mentioned in the documentation as not to confuse users.

----------
components: Library (Lib)
messages: 183379
nosy: zwn
priority: normal
severity: normal
status: open
title: datetime.strptime does not implement %z
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17342>
_______________________________________


More information about the New-bugs-announce mailing list