Convert UNIX timestamp to .NET DateTime ticks in unmanaged code (no use of .NET)
1 answer
This will give you the number of ticks since Unix Epoc started (which is 621,355,968,000,000,000)
(new DateTime( 1970,1,1) - DateTime.MinValue).Ticks
This gives you ticks per second (which is 10,000,000)
TimeSpan.TicksPerSecond
Just math from there (might bump into weirdness around jump seconds).
+1
a source to share