次の方法で共有


Current Time: Automation Classes

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Current Time: Automation Classes.

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

See Also

Date and Time: Automation Support