CTime lT_time = CTime::GetCurrentTime();

 

CString strTempBuf;

 

strTempBuf.Format(_T("%d_%d_%d_%d_%d_."), lT_time.GetYear(), lT_time.GetMonth(), lT_time.GetDay(), lT_time.GetHour(), lT_time.GetMinute());


다음처럼 불러올수있다.

다만 CTime::GetCurrentTime(); 대신에 GetCurrentTime(); 만을 불렀더니 과거시간(1972년)이 나온다.

Posted by OnDraw
,