Last active
November 3, 2017 11:24
-
-
Save seumasmorrison/7c52b44d2cbf4ea9d172e72619bda0c8 to your computer and use it in GitHub Desktop.
Function for converting Windows timestamps to Python datetimes.
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
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