Share via


CTimeSpan Comparison Operators

Comparison operators.

bool operator ==( 
   CTimeSpan span  
) const throw( ); 
bool operator !=( 
   CTimeSpan span  
) const throw( ); 
bool operator <( 
   CTimeSpan span  
) const throw( ); 
bool operator >( 
   CTimeSpan span  
) const throw( ); 
bool operator <=( 
   CTimeSpan span  
) const throw( ); 
bool operator >=( 
   CTimeSpan span  
) const throw( );

Parameters

span

The object to compare.

Return Value

These operators compare two relative time values. They return true if the condition is true; otherwise false.

Example

CTimeSpan ts1(100);
CTimeSpan ts2(110);
ATLASSERT((ts1 != ts2) && (ts1 < ts2) && (ts1 <= ts2));   

Requirements

Header: atltime.h

See Also

Reference

CTimeSpan Class

Hierarchy Chart