現在の時刻 : オートメーション クラス

次の手順では COleDateTime のオブジェクトを作成し、現在時刻で初期化する方法を示します。

現在時刻を取得する

  1. COleDateTime オブジェクトを作成します。

  2. GetCurrentTime を呼び出します。

    COleDateTime timeNow;
    timeNow = COleDateTime::GetCurrentTime();   
    

参照

概念

日付と時刻 : オートメーションのサポート