Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to convert milliseconds since epoch to a human-readable timestamp
import datetime
import sys
print datetime.datetime.fromtimestamp(float(sys.argv[1])/1000).strftime('%Y-%m-%d %H:%M:%S.%f')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment