共用方式為


Current Time: Automation Classes

OverviewHow Do I

The following procedure shows how to create a COleDateTime object and initialize it with the current time.

To get the current time

  1. Create a COleDateTime object.

  2. Call GetCurrentTime.

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