MFC获取系统当前时间(MFC gets the current time of the system).docVIP

  • 20
  • 0
  • 约1.01万字
  • 约 16页
  • 2017-07-20 发布于河南
  • 举报

MFC获取系统当前时间(MFC gets the current time of the system).doc

MFC获取系统当前时间(MFC gets the current time of the system)

MFC获取系统当前时间(MFC gets the current time of the system) 1. Use the CTime class Cstrings STR. / / acquire system time CTime tm; Tm = CTime: : GetCurrentTime (); STR = tm. Format ( now % Y % m % d % X ); MessageBox (STR, NULL, MB_OK); 2: get the system time date (using GetLocalTime) SYSTEMTIME st. Cstrings strDate strTime; GetLocalTime ( st); StrDate. The Format ( % % 4 d - 2 d - % 2 d , st. wYear, st. wMonth, st. wDay); StrTime. The Format ( % 2 d: % 2 d: % 2 d , st. wHour, st. wMinute, st. wSecond); / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /

文档评论(0)

1亿VIP精品文档

相关文档