Created
June 14, 2017 17:43
-
-
Save andrewSC/64a9f36fd752a50dd1ebfadef440a1a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python | |
Python 3.6.1 (default, Mar 28 2017, 09:22:36) | |
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.38)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import datetime | |
>>> datetime.datetime.strptime('2017-06-05T13:34:34.198182+00:00', '%Y-%m-%dT%H:%M:%S.%f%z') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_strptime.py", line 565, in _strptime_datetime | |
tt, fraction = _strptime(data_string, format) | |
File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_strptime.py", line 362, in _strptime | |
(data_string, format)) | |
ValueError: time data '2017-06-05T13:34:34.198182+00:00' does not match format '%Y-%m-%dT%H:%M:%S.%f%z' | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment