TimeHour
- Last UpdatedJul 18, 2023
- 1 minute read
Gets the hour value from a time/date variable.
Note: Time/Date functions can only be used with dates between 1980 and 2035. You should
check that the date you are using is valid with Cicode similar to the following:
IF StrToDate(Arg1)>0 THEN
...
ELSE
...
END
Syntax
TimeHour(Time)
Time:
The time/date variable.
Return Value
The hour (as an integer).
Related Functions
Example
! If the current system time is 11:43:10 a.m.;
HoursVariable=TimeHour(TimeCurrent());
! Sets HoursVariable to 11.