c++ windows 获取系统时间

1 SYSTEMTIME systm;   
2     GetLocalTime(&systm); 
3     char time[64] = {0};
4     sprintf(time, "%d%d%d%d%d%d%d", systm.wYear, systm.wMonth, systm.wDay, systm.wHour, systm.wMinute, systm.wSecond, systm.wMilliseconds);
5     DbgPrintA(time);

 

记录~spa

相关文章
相关标签/搜索