CTimeSpan::GetHours
Restituisce un valore che rappresenta il numero di ore il giorno corrente (– da 23 a 23).
LONG GetHours( ) const throw( );
Valore restituito
Restituisce il numero di ore il giorno corrente.L'intervallo è (da 23 a 23.
Esempio
CTimeSpan ts(3, 1, 5, 12); // 3 days, 1 hour, 5 min, and 12 sec
ATLASSERT(ts.GetHours() == 1);
ATLASSERT(ts.GetMinutes() == 5);
ATLASSERT(ts.GetSeconds() == 12);
Requisiti
Header: atltime.h