| 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 | { |
no outgoing calls
no test coverage detected