다음을 통해 공유


CFileTime::operator <

이 연산자는 두 비교 CFileTime 개체는 하 급 결정 합니다.

bool operator<( 
   CFileTime ft  
) const throw( );

매개 변수

  • ft
    비교할 CFileTime 개체입니다.

반환 값

반환 true 첫 번째 개체 (시간)에 앞서 두 번째 보다 작은 경우 거짓 그렇지.

예제

// Test for one time less than another
// Declare the CFileType objects
CFileTime myFT1, myFT2;

// Obtain the first time value
myFT1 = CFileTime::GetCurrentTime();

// Pause for a moment...
Sleep(1000);

// Obtain the second time value
myFT2 = CFileTime::GetCurrentTime();

// Perform the comparison
if (myFT1 < myFT2)
   _tprintf_s(_T("Time is going in the correct direction.\n"));
else
   _tprintf_s(_T("Oh dear. Time is going backwards.\n"));

요구 사항

헤더: atltime.h

참고 항목

참조

CFileTime 클래스