COleDateTimeSpan::operator +=, -=

const COleDateTimeSpan& operator+=( const COleDateTimeSpan dateSpan );

const COleDateTimeSpan& operator-=( const COleDateTimeSpan dateSpan );

Remarks

These operators let you add and subtract date/time-span values from this COleDateTimeSpan object.

If either of the operands is null, the status of the resulting COleDateTimeSpan value is null.

If either of the operands is invalid and the other is not null, the status of the resulting COleDateTimeSpan value is invalid.

For more information on the valid, invalid, and null status values, see the m_status member variable.

Example

// example for COleDateTimeSpan::operator +=, -=
COleDateTimeSpan ts1( 10.0 ); // 10 days
COleDateTimeSpan ts2( 100.0 ); // 100 days
ts2 -= ts1;
ASSERT( ts2.GetTotalDays() == 90 );

COleDateTimeSpan OverviewClass MembersHierarchy Chart

See Also   COleDateTimeSpan::operator +, -