Instantly share code, notes, and snippets.

What would you like to do?
Function for converting Windows timestamps to Python datetimes.
from datetime import datetime
from datetime import timedelta
def windows_timestamp_to_python_datetime(windows_timestamp):
return datetime(1601,1,1) + timedelta(microseconds=windows_timestamp/10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment