Last active
August 29, 2015 14:20
Revisions
-
nsfyn55 revised this gist
May 1, 2015 . No changes.There are no files selected for viewing
-
nsfyn55 renamed this gist
May 1, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nsfyn55 created this gist
May 1, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ from dateutil.parser import parse from pytz import utc datestr = 'Fri, 24 Apr 2015 14:49:32 -0400' dt = parse(datestr) utc_dt = dt.astimezone(utc) final = utc_dt.replace(tzinfo=None)