CTime cTime = CTime::GetCurrentTime(); CString msg; msg.Format("%u",cTime .GetTime()); AfxMessageBox(msg);//返回结果:13位的字符串。如果需要返回YY:MM:DD,请google
vc获取时间戳
原文:http://www.cnblogs.com/songtzu/p/3559448.html