MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / timet2filetime

Function timet2filetime

src/Setup/unzip.cpp:3724–3730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3722typedef unsigned __int32 lutime_t; // define it ourselves since we don't include time.h
3723
3724FILETIME timet2filetime(const lutime_t t)
3725{ LONGLONG i = Int32x32To64(t,10000000) + 116444736000000000;
3726 FILETIME ft;
3727 ft.dwLowDateTime = (DWORD) i;
3728 ft.dwHighDateTime = (DWORD)(i >>32);
3729 return ft;
3730}
3731
3732FILETIME dosdatetime2filetime(WORD dosdate,WORD dostime)
3733{ // date: bits 0-4 are day of month 1-31. Bits 5-8 are month 1..12. Bits 9-15 are year-1980

Callers 1

GetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected