Object Model Reference : Classes : C : CorelScriptTools : Methods : 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 is set to 5:37:16 PM, then H equals 17, M equals 37, and S equals 16.
DIM TodayTime AS DATE |
TodayTime = GETCURRDATE() |
GETTIMEINFO TodayTime, H&, M&, S& |
Copyright 2013 Corel Corporation. All rights reserved.