Skip to content

Instantly share code, notes, and snippets.

@steve-jansen
Created September 28, 2016 15:56
Embed
What would you like to do?
Convert a Windows FILETIME value to a localized date string
# 131194047065676512 is an example FILETIME value
ruby -e 'puts Time.at((Integer(ARGV[0]) - 116444736000000000) / 10000000)' -- 131194047065676512
@steve-jansen
Copy link
Author

$ ruby -e 'puts Time.at((Integer(ARGV[0]) - 116444736000000000)  / 10000000)' -- 131194047065676512
2016-09-26 19:05:06 -0400

@steve-jansen
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment