Skip to content

Instantly share code, notes, and snippets.

@k-saka
Created August 10, 2010 21:33
Show Gist options
  • Save k-saka/518059 to your computer and use it in GitHub Desktop.
Save k-saka/518059 to your computer and use it in GitHub Desktop.
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