Skip to content

Instantly share code, notes, and snippets.

@bmaupin
Created January 20, 2015 17:38
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 bmaupin/4bed4011b1987b29a7c2 to your computer and use it in GitHub Desktop.
Save bmaupin/4bed4011b1987b29a7c2 to your computer and use it in GitHub Desktop.
Convert MS Filetime
package main
import "fmt"
import "time"
func main() {
var filetime int64 = 129472648056962786
fmt.Println(time.Unix(convertFiletimeToUnix(filetime), 0))
}
func convertFiletimeToUnix(filetime int64) int64 {
return (filetime / 10000000) - 11644473600
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment