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 <[email protected]>
<http://bugs.python.org/issue29964>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com