Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CTime Comparison Operators
CTime                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL operator ==( CTime time ) const;
  BOOL operator !=( CTime time ) const;
  BOOL operator <( CTime time ) const;
  BOOL operator >( CTime time ) const;
  BOOL operator <=( CTime time ) const;
  BOOL operator >=( CTime time ) const;
 
  Remarks
 
  These operators compare two absolute times and return TRUE if the
  condition is true; otherwise FALSE.
 
  Example
 
  CTime t1 = CTime::GetCurrentTime();
  CTime t2 = t1 + CTimeSpan( 0, 1, 0, 0 );    // 1 hour later
  ASSERT( t1 != t2 );
  ASSERT( t1 < t2 );
  ASSERT( t1 <= t2 );
 
 
 
                                     -♦-