Skip to content

Instantly share code, notes, and snippets.

@garrettwilkin
Created October 31, 2013 03:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettwilkin/7244004 to your computer and use it in GitHub Desktop.
Save garrettwilkin/7244004 to your computer and use it in GitHub Desktop.
This file gives me the error: $ python timey.py Traceback (most recent call last): File "timey.py", line 3, in <module> print datetime.strptime('2013-10-29T02:03:59Z','%Y-%m-%dT%H:%M:%S%z') AttributeError: 'module' object has no attribute 'strptime'
import datetime
print datetime.strptime('2013-10-29T02:03:59Z','%Y-%m-%dT%H:%M:%S%z'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment