文件时间转毫秒 系统时间转毫秒

 

LONGLONG FileTimeToMillSeconds(FILETIME* pTime)
{
ULARGE_INTEGER ui;

ui.LowPart = pTime->dwLowDateTime;

ui.HighPart = pTime->dwHighDateTime;

return ((LONGLONG)(ui.QuadPart - 116444736000000000) / 10000);

}


LONGLONG SystemTimeToMillSeconds(SYSTEMTIME* pTime)
{

FILETIME fTime = { 0, 0 };

SystemTimeToFileTime(pTime, &fTime);

return FileTimeToMillSeconds(&fTime);

}

文件时间转毫秒 系统时间转毫秒

上一篇:解决 Failed to connect to github.com port 443: Timed out


下一篇:短信平台对接-一信通