Skip to content

Instantly share code, notes, and snippets.

@diggzhang
Created February 15, 2017 06:22
Show Gist options
  • Save diggzhang/5241e82b7db21b899d8c7710556932d2 to your computer and use it in GitHub Desktop.
Save diggzhang/5241e82b7db21b899d8c7710556932d2 to your computer and use it in GitHub Desktop.
batch convert timestamp to readable date time
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