Message291042
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. |
|
Date |
User |
Action |
Args |
2017-04-02 20:57:06 | martin.panter | set | recipients:
+ martin.panter, Paul Pinterits |
2017-04-02 20:57:06 | martin.panter | set | messageid: <1491166626.52.0.902888450105.issue29964@psf.upfronthosting.co.za> |
2017-04-02 20:57:06 | martin.panter | link | issue29964 messages |
2017-04-02 20:57:06 | martin.panter | create | |
|