Skip to content

Instantly share code, notes, and snippets.

@Eugeny
Created November 18, 2010 13:15
Show Gist options
  • Save Eugeny/704955 to your computer and use it in GitHub Desktop.
Save Eugeny/704955 to your computer and use it in GitHub Desktop.
>>> from datetime import *
>>> datetime.strptime('+0300', '%z')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/_strptime.py", line 317, in _strptime
(bad_directive, format))
ValueError: 'z' is a bad directive in format '%z'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment