Share via


COleDateTime::operator +=, -=

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

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

Remarks

These operators allow you to add and subtract a COleDateTimeSpan value to and from this COleDateTime.

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

If the resulting COleDateTime value falls outside the bounds of acceptable values, the status of this COleDateTime value is set to invalid.

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

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

For more information about the bounds for COleDateTime values, see the article in Visual C++ Programmer’s Guide.

COleDateTime OverviewClass MembersHierarchy Chart

See Also   COleDateTime::operator +, -, COleDateTime::GetStatus