Created
May 29, 2015 10:04
-
-
Save jian-en/a16be3ec8d8a42db6cbb to your computer and use it in GitHub Desktop.
python timestamp to datetime object
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
datetime.datetime.fromtimestamp( | |
int("1284101485") | |
).strftime('%Y-%m-%d %H:%M:%S') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment