COleDateTime operator +( const COleDateTimeSpan& dateSpan ) const;
COleDateTime operator -( const COleDateTimeSpan& dateSpan ) const;
COleDateTimeSpan operator -( const COleDateTime& date ) const;
Remarks
COleDateTime objects represent absolute times. COleDateTimeSpan objects represent relative times. The first two operators allow you to add and subtract a COleDateTimeSpan value from a COleDateTime value. The third operator allows you to subtract one COleDateTime value from another to yield a COleDateTimeSpan value.
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 that COleDateTime value is invalid.
If either of the operands is invalid and the 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 Date and Time: Automation Support in Visual C++ Programmer’s Guide.
COleDateTime Overview | Class Members | Hierarchy Chart
See Also COleDateTime::operator +=, -=, COleDateTime::GetStatus, COleDateTimeSpan