WebKit/Chrome Timestamp Converter

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.

The current WebKit timestamp is 13150373263000000.

 
 

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)

Example on Pastebin

 

Thanks to dpcnull.