Created
August 10, 2010 21:33
-
-
Save k-saka/518059 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 time, calendar | |
t = 'Mon Aug 09 16:26:19 +0000 2010' | |
utime = time.strptime(t,'%a %b %d %H:%M:%S +0000 %Y') | |
jtime = time.localtime(calendar.timegm(utime)) | |
return time.strftime('%Y%m%d%H%M%S',jtime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment