Udostępnij za pośrednictwem


CTime::GetTime

Zwraca __time64_t wartość dla danego CTime obiektu.

__time64_t GetTime( ) const throw( );

Wartość zwracana

GetTime zwróci liczbę sekund między bieżącym CTime obiektu i 1 stycznia 1970 r.

Przykład

CTime t(2005, 10, 20, 23, 50, 0); // 11:50 PM October 20, 2005
time_t osBinaryTime = t.GetTime();  // time_t defined in <time.h>

_tprintf_s(_T("time_t = %ld\n"), osBinaryTime);

Wymagania

Nagłówek: atltime.h

Zobacz też

Informacje

Klasa CTime

Wykres hierarchii

CTime::CTime