Created
January 20, 2015 17:38
-
-
Save bmaupin/4bed4011b1987b29a7c2 to your computer and use it in GitHub Desktop.
Convert MS Filetime
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
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