CString GetCurrentDispatchTime()
{
CTime time(CTime::GetCurrentTime());
CString currentTime;
currentTime.Format(L"%04d%02d%02d%02d%02d%02d", time.GetYear(),
time.GetMonth(),
time.GetDay(),
time.GetHour(),
time.GetMinute(),
time.GetSecond());
return currentTime;
}
MFC 获取格式化时间
最新推荐文章于 2021-09-07 21:22:17 发布