BOOL Operator ==( CTime time ) const;
BOOL Operator !=( CTime time ) const;
BOO&L Operator lt;( CTime Zeit ) const;
BOOL Operator >( CTime Zeit ) const;
BOO&L Operator Lt; = ( CTime Zeit ) const;
BOOL Operator ≫ = ( CTime Zeit ) const;
Bemerkungen
Diese Operatoren vergleichen zwei absolute Zeiten und zurück ungleich NULL, wenn die Bedingung wahr ist; andernfalls 0.
Beispiel
/ / Beispiel für CTime-Vergleichsoperatoren
CTime t1 = CTime::GetCurrentTime();
CTime t2 = t1 + CTimeSpan (0, 1, 0, 0); Nbsp; / / 1 Stunde später
ASSERT (t1! = t2);
ASSERT (t1 < t2);
ASSERT (t1 < = t2)