#include <windows.h>
#include <time.h>
inline time_t SystemTimeToTime_t( const SYSTEMTIME& st )
{
tm temptm = {st.wSecond, st.wMinute, st.wHour, st.wDay, st.wMonth - 1, st.wYear - 1900, st.wDayOfWeek, 0, 0};
return mktime(&temptm);
}
SYSTEMTIME转时间戳
最新推荐文章于 2023-04-25 15:28:55 发布