CTime::operator +, -

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.

Syntax

CTime operator +( CTimeSpan timeSpan ) const;

CTime operator –( CTimeSpan timeSpan ) const;

CTimeSpan operator –( CTime time ) const;

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CTime Overview, CTime Operators, Simple Value Types