Last active
December 25, 2015 15:19
-
-
Save diezguerra/6997711 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
import dateutil.parser | |
import pytz | |
date_string = '2013-10-14T12:47:12.776270' | |
date_object = pytz.timezone('America/Los_Angeles').localize(dateutil.parser.parse(date_string)) | |
print date_object.isoformat() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment