Created
July 23, 2012 18:29
-
-
Save okin/3165258 to your computer and use it in GitHub Desktop.
Parsing UTC + Offset with Python
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
#Package on pypi is: http://pypi.python.org/pypi/python-dateutil/2.1 | |
from dateutil.parser import parse | |
#This is the value found somewhere | |
s = "20120629074518Z00'00'" | |
#This will give you a datetime to work with | |
dtime = parse(s) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment