CTimeSpan operatore + ( CTimeSpan timeSpan ) const;
CTimeSpan operatore -( CTimeSpan timeSpan ) const;
Osservazioni
Questi due operatori consentono di aggiungere e sottrarre CTimeSpan oggetti da e verso l'altro.
Esempio
/ / esempio per CTimeSpan::operator +, -
CTimeSpan ts1 (3, 1, 5, 12); / / 3 giorni, 1 ora, 5 minuti, e 12 sec
Ts2 CTimeSpan (100); / / 100 secondi
CTimeSpan ts3 = ts1 + ts2;
ASSERT (ts3.GetSeconds() = = 52); / / 6 min, 52 secs
Panoramica CTimespan |nbsp; Membri della classe | Gerarchia Chart