Created
February 15, 2017 06:22
-
-
Save diggzhang/5241e82b7db21b899d8c7710556932d2 to your computer and use it in GitHub Desktop.
batch convert timestamp to readable date 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 datetime import datetime | |
timestamp_list = [ | |
1486137597659, | |
1486137597659 | |
] | |
for timestamp in timestamp_list: | |
print(datetime.fromtimestamp(timestamp/1000)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment