CTime 사용하기CTime 사용하기

Posted at 2008. 11. 28. 01:15 | Posted in 프로그래밍 언어/C/C++/MFC
현재 timestamp 얻기
CTime time = CTime::GetCurrentTime();
__int64 timestamp = time.GetTime();

timestamp로부터 연월일시분초 얻기 (월만 얻어본다)
CTime time2 = timestamp; // operator=(__int64)
int month = time2.GetMonth(); // +1 같은거 안 해도 된다.

//