Created
August 14, 2014 14:07
-
-
Save cubicdaiya/e7e76a467d4e3f24e233 to your computer and use it in GitHub Desktop.
epoch2datetime
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
ts_epoch = time.time() | |
ts = datetime.datetime.fromtimestamp(ts_epoch).strftime('%Y-%m-%d %H:%M:%S') | |
print ts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment