时间
来源:互联网 发布:json字符串base64加密 编辑:程序博客网 时间:2024/06/10 04:38
typedef struct _SYSTEMTIME
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
1.CTime类获取当前时间
CTimecurTime;
curTime = CTime::GetCurrentTime();
CStringstrCurTime;
strCurTime.Format(_T("d/d/d d:d:d"), curTime.GetYear(),curTime.GetMonth(), curTime.GetDay(), curTime.GetHour(),curTime.GetMinute(), curTime.GetSecond());
2.SYSTEMTIME结构体获取当前时间
SYSTEMTIME curTime;
GetLocalTime(&curTime);
CString strCurTime;
strCurTime.Format(_T("d/d/d d:d:d"), curTime.wYear, curTime.wMonth,curTime.wDay, curTime.wHour, curTime.wMinute,curTime.wSecond);
0 0
- 【时间】
- 时间!!
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 时间
- 15年省赛和东北区域赛总结
- Unix类ls的小程序
- R软件学习笔记—Legend
- CentOS 编译安装 PyCrypto
- 威海高收费电话加盟 2014好项目 电话群呼器
- 时间
- ruby元编程读后感
- 轮廓处理之一
- 线程中sleep()方法和yeild()方法的区别
- Oracle创建用户、表空间、导入导出、...命令
- 记修改论文的感受
- 【连载】 .Net cad二次开发(二)
- YTU 2887: D--机器人Bill
- poj 1094 Sorting It All Out 【拓扑排序】