MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / TimeToSystemTime

Function TimeToSystemTime

src/openrct2/platform/Platform.Win32.cpp:167–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 static SYSTEMTIME TimeToSystemTime(std::time_t timestamp)
168 {
169 ULARGE_INTEGER time_value;
170 time_value.QuadPart = (timestamp * 10000000LL) + 116444736000000000LL;
171
172 FILETIME ft;
173 ft.dwLowDateTime = time_value.LowPart;
174 ft.dwHighDateTime = time_value.HighPart;
175
176 SYSTEMTIME st;
177 FileTimeToSystemTime(&ft, &st);
178 return st;
179 }
180
181 std::string FormatShortDate(std::time_t timestamp)
182 {

Callers 2

FormatShortDateFunction · 0.85
FormatTimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected