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

Method SetDos

Libraries/unrar/timefn.cpp:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211void RarTime::SetDos(uint DosTime)
212{
213 RarLocalTime lt;
214 lt.Second=(DosTime & 0x1f)*2;
215 lt.Minute=(DosTime>>5) & 0x3f;
216 lt.Hour=(DosTime>>11) & 0x1f;
217 lt.Day=(DosTime>>16) & 0x1f;
218 lt.Month=(DosTime>>21) & 0x0f;
219 lt.Year=(DosTime>>25)+1980;
220 lt.Reminder=0;
221 SetLocal(&lt);
222}
223
224
225void RarTime::GetText(wchar *DateStr,size_t MaxSize,bool FullMS)

Callers 2

ReadHeader15Method · 0.80
ReadHeader14Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected