COleDateTimeSpan::operator +=, -=
Add and subtract a COleDateTimeSpan value from this COleDateTimeSpan value.
COleDateTimeSpan& operator +=(
const COleDateTimeSpan dateSpan
) throw( );
COleDateTimeSpan& operator -=(
const COleDateTimeSpan dateSpan
) throw( );
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
COleDateTimeSpan ts1(10.0); // 10 days
COleDateTimeSpan ts2(100.0); // 100 days
ts2 -= ts1;
ASSERT(ts2.GetTotalDays() == 90);
Requirements
Header: atlcomtime.h