如何获取系统的当前时间

wildgrass 2002-11-10 10:09:06
如何获取系统的当前时间?
...全文
29 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
52001314 2002-11-10
  • 打赏
  • 举报
回复
CTime::GetCurrentTime();
phoenix96_2000 2002-11-10
  • 打赏
  • 举报
回复
// example for CTime::GetCurrentTime
CTime t = CTime::GetCurrentTime();
t.GetHour,GetSecond,等等自己看MSDN 吧

void GetSystemTime(
LPSYSTEMTIME lpSystemTime
);
//The GetLocalTime function retrieves the current local date and time.
void GetLocalTime(
LPSYSTEMTIME lpSystemTime
);



  • 打赏
  • 举报
回复
up
yue621 2002-11-10
  • 打赏
  • 举报
回复
他们都说了,我还说什么!
算了,我也说两句:
自己先用功学习,实在没办法再到论坛发贴子:)

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧