② 得到当前时间 time = CTime::GetCurrentTime(); ③ GetYear( ),GetMonth( ), GetDay( ), GetHour( ), GetMinute( ), GetSecond( ), GetDayOfWeek( ) 返回整型(int)对应项目 ④ 将当前时间格式化 CString date = time.Format("%Y-%m-%d %H:%M:%S %W-%A"); 说明: 1) 结果为:2006-10-13 ...