Created
May 11, 2015 21:18
-
-
Save ahhh/749492774331b941ac1d to your computer and use it in GitHub Desktop.
Convert from epoc time to gmt time
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 characters
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