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

Method SetCurrentTime

Libraries/unrar/timefn.cpp:305–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303
304
305void RarTime::SetCurrentTime()
306{
307#ifdef _WIN_ALL
308 FILETIME ft;
309 SYSTEMTIME st;
310 GetSystemTime(&st);
311 SystemTimeToFileTime(&st,&ft);
312 SetWinFT(&ft);
313#else
314 time_t st;
315 time(&st);
316 SetUnix(st);
317#endif
318}
319
320
321// Add the specified signed number of nanoseconds.

Callers 4

MkTempFunction · 0.80
GenArcNameFunction · 0.80
TimeRandomizeFunction · 0.80
ExtractArchiveInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected