This question already has an answer here:
I am trying to convert Windows Ticks into Go's native time.Time
. Specifically, I want to convert 635885625204626270
into an UNIX timestamp. So far I only managed to adapt a PHP question, and could get as far as seconds, however I am now stuck here.
ticksInUnix := (635885625204626270 / 10000000) - 60*60*24*365*1970
t := time.Unix(ticksInUnix, 0)
</div>