Last active
December 12, 2015 03:28
-
-
Save adulau/4706836 to your computer and use it in GitHub Desktop.
Convert Windows NTFS 64bit timestamp to epoch 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
def ntfsts2epoch(ts): | |
filetime_posix=11644473600L*10000000 #from 64bit NTFS timestamp (16010101) to 64bit epoch timestamp (19700101) | |
return int(str((ts-filetime_posix))[:10]) | |
print ntfsts2epoch(130042164473271112) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment