Created
June 10, 2015 23:39
-
-
Save evnm/d17336bf42e887c6e756 to your computer and use it in GitHub Desktop.
Script to convert milliseconds since epoch to a human-readable timestamp
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
#!/usr/bin/python | |
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