VC 获取当前的日期、时间并格式化输出.rar

时间:2022-07-30 06:34:57
【文件属性】:
文件名称:VC 获取当前的日期、时间并格式化输出.rar
文件大小:13KB
文件格式:RAR
更新时间:2022-07-30 06:34:57
VC 源码-系统相关 VC 获取当前的日期、时间并格式化输出m   m_time=CTime::GetCurrentTime();//获取当前时间日期   m_strDate=m_time.Format("%x");//格式化日期   m_strTime=m_time.Format("%X");//格式化时间   m_strDateTime=m_time.Format("%Y-%m-%d %H:%M:%S 第%W周-%A");//格式化日期时间   UpdateData(false);
【文件预览】:
codesc.net
----VC++获取当前的日期、时间并格式化输出()
--------GetCurTime()

网友评论