Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Create a
COleDateTime
object.Call
GetCurrentTime
.COleDateTime timeNow; timeNow = COleDateTime::GetCurrentTime();