API Documentation > CorelDRAW > 2025-v26 > CorelScriptTools > ICorelScriptTools
CorelScriptTools.GetTimeInfo method
Gets Time Info
Syntax:
Sub GetTimeInfo(ByVal Time As Date, ByRef Hour As Long, ByRef Minute As Long, ByRef Second As Long)
Parameters:
Name Type Description
Time
Date
Hour
Long
Minute
Long
Second
Long
Remarks:
The GetTimeInfo method extracts the components of a time expression to numeric variables.
Examples:
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&