次の方法で共有


CTime::GetTime

指定された CTime オブジェクトに対する time64_t の値を返します。

__time64_t GetTime( ) const throw( );

戻り値

GetTimeCTime の現在のオブジェクトと 1970 の間に秒数 1 年 1 月 1 を返します。

使用例

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);

必要条件

ヘッダー : atltime.h

参照

関連項目

CTime クラス

階層図

CTime::CTime