![]() |
![]() |
CorelScriptTools.GetTimeInfo
Sub GetTimeInfo(Time As Date, Hour As Long, Minute As Long, Second As Long)
Member of CorelScriptTools
The GetTimeInfo method extracts the components of a time expression to numeric variables.
In the following code example, the first line declares the date variable TodayTime. This variable is then assigned the current date and time with the GetCurrDate function. The variables H, M, and S are then assigned their respective component of the time stored in TodayTime. If TodayTime was set to 5:37:16 PM, then H=17, M=37, S=16.
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.