1 FILETIME ft = { 0 }; 2 SYSTEMTIME st = { 0 }; 3 ULARGE_INTEGER ull = { 0 }; 4 ::GetSystemTime(&st); 5 ::SystemTimeToFileTime(&st, &ft); 6 ull.LowPart = ft.dwLowDateTime; 7 ull.HighPart = ft.dwHighDateTime; 8 return (ull.QuadPart - 116444736000000000ULL) / 10000000ULL;
可以自己运行代码获取结果和在线的对比下;下面是在线实时获取time date stamp 网站
https://tool.lu/timestamp/