Convert WebKit/Chrome timestamps to human-readable date & Unix time
This timestamp format is used in web browsers such as Apple Safari (WebKit), Google Chrome and Opera (Chromium/Blink). It's a 64-bit value for microseconds since Jan 1, 1601 00:00 UTC. One microsecond is one-millionth of a second.
The current WebKit timestamp is 13375260415000000
Enter a 17-digit WebKit timestamp:
Programming routines
Python
import datetime def date_from_webkit(webkit_timestamp): epoch_start = datetime.datetime(1601,1,1) delta = datetime.timedelta(microseconds=int(webkit_timestamp)) print epoch_start + delta inTime = int(raw_input('Enter a Webkit timestamp to convert:')) date_from_webkit(inTime)
Thanks to dpcnull.