CTime::operator +, -

These operators 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.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

CTime operator +( CTimeSpan timeSpan ) const;

CTime operator ( CTimeSpan timeSpan ) const;

CTimeSpan operator ( CTime time ) const;