This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author deronnax
Recipients deronnax
Date 2017-03-02.07:31:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488439889.25.0.877178323072.issue29690@psf.upfronthosting.co.za>
In-reply-to
Content
➜  ~ cat dt.py 
from datetime import *
dt = datetime.strptime('+1720', '%z')
print(dt)
➜  ~ python2 dt.py 
Traceback (most recent call last):
  File "dt.py", line 2, in <module>
    dt = datetime.strptime('+1720', '%z')
  File "/usr/lib/python2.7/_strptime.py", line 324, in _strptime
    (bad_directive, format))
ValueError: 'z' is a bad directive in format '%z'
➜  ~ python3 dt.py
1900-01-01 00:00:00+17:20

We should either mention it in doc, either cherry-pick the code from python3
History
Date User Action Args
2017-03-02 07:31:29deronnaxsetrecipients: + deronnax
2017-03-02 07:31:29deronnaxsetmessageid: <1488439889.25.0.877178323072.issue29690@psf.upfronthosting.co.za>
2017-03-02 07:31:29deronnaxlinkissue29690 messages
2017-03-02 07:31:28deronnaxcreate