Skip to content

Instantly share code, notes, and snippets.

@ahhh
Created May 11, 2015 21:18
Show Gist options
  • Save ahhh/749492774331b941ac1d to your computer and use it in GitHub Desktop.
Save ahhh/749492774331b941ac1d to your computer and use it in GitHub Desktop.
Convert from epoc time to gmt time
from time import gmtime, strftime
TIMESTAMP = 1413135372291 #EXAMPLE Replace w/ your values
# print gmtime(TIMESTAMP/1000)
print strftime('%m/%d/%Y %H:%M:%S', gmtime(TIMESTAMP/1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment