MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / SetUnixNS

Method SetUnixNS

Libraries/unrar/timefn.cpp:193–198  ·  view source on GitHub ↗

Set the high precision Unix time in nanoseconds since 01-01-1970.

Source from the content-addressed store, hash-verified

191
192// Set the high precision Unix time in nanoseconds since 01-01-1970.
193void RarTime::SetUnixNS(uint64 ns)
194{
195 // 11644473600000000000 - number of ns between 01-01-1601 and 01-01-1970.
196 uint64 ushift=INT32TO64(0xA1997B0B,0x4C6A0000);
197 itime=(ns+ushift)/(1000000000/TICKS_PER_SECOND);
198}
199
200
201uint RarTime::GetDos()

Callers 1

FastFindMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected