Use these operators to add and subtract CTimeSpan objects to and from CTime objects.
Use the third overloaded operator to subtract one CTime object from another to yield a CTimeSpan object.
CTime objects represent absolute time. CTimeSpan objects represent relative time.
CTime operator +( CTimeSpan timeSpan ) const;
CTime operator –( CTimeSpan timeSpan ) const;
CTimeSpan operator –( CTime time ) const;
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CTime Overview, CTime Operators, Simple Value Types