Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
constCTime&operator+=(CTimeSpantimeSpan**);**
constCTime&operator-=(CTimeSpantimeSpan**);**
Remarks
These operators allow you to add and subtract a CTimeSpan object to and from this CTime object.
Example
// example for CTime::operator -=
CTime t( 1999, 3, 19, 22, 15, 0 ); // 10:15PM March 19, 1999
t += CTimeSpan( 0, 1, 0, 0 ); // 1 hour exactly
ASSERT( t.GetHour() == 23 );