Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@steve-jansen
Created September 28, 2016 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steve-jansen/c7bf58e17884ff84ab881fea678da4dc to your computer and use it in GitHub Desktop.
Save steve-jansen/c7bf58e17884ff84ab881fea678da4dc to your computer and use it in GitHub Desktop.
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