BOOL operator==( const COleDateTimeSpan& dateSpan ) const;
BOOL operator!=( const COleDateTimeSpan& dateSpan ) const;
BOOL operator<( const COleDateTimeSpan& dateSpan ) const;
BOOL operator>( const COleDateTimeSpan& dateSpan ) const;
BOOL operator<=( const COleDateTimeSpan& dateSpan ) const;
BOOL operator>=( const COleDateTimeSpan& dateSpan ) const;
Remarks
These operators compare two date/time-span values and return nonzero if the condition is true; otherwise 0.
Note The return value of the ordering operations (<, <=, >, >=) is undefined if the status of either operand is null or invalid. The equality operators (==, !=) consider the status of the operands.
Example
COleDateTimeSpan spanOne(3, 12, 0, 0); // 3 days and 12 hours
COleDateTimeSpan spanTwo(spanOne);     // 3 days and 12 hours
BOOL b;
b = spanOne == spanTwo;                // TRUE
spanTwo.SetStatus(COleDateTimeSpan::invalid);
b = spanOne == spanTwo;                // FALSE, different status
b = spanOne != spanTwo;                // TRUE, different status
b = spanOne < spanTwo;                 // FALSE, same value
b = spanOne > spanTwo;                 // FALSE, same value
b = spanOne <= spanTwo;                // TRUE, same value
b = spanOne >= spanTwo;                // TRUE, same value
Note The last four lines of the preceding example will ASSERT in debug mode.