[issue29964] %z directive has no effect on the output of time.strptime
Martin Panter
report at bugs.python.org
Sun Apr 2 16:57:06 EDT 2017
Martin Panter added the comment:
Are you sure? It works for me:
>>> strptime("+0200", "%z").tm_gmtoff
7200
>>> strptime("+0000", "%z").tm_gmtoff
0
The "struct_time" class is documented as a named tuple, but the time zone offset is not one of the tuple elements, so isn’t going to be checked for equality.
----------
nosy: +martin.panter
resolution: -> works for me
stage: -> test needed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29964>
_______________________________________
More information about the Python-bugs-list
mailing list