Hour Procedure |
Version 7 |
Returns the current or specified date/time hour (0-23).
[ lHour = ] Hour ( [ dt ] )
The Hour procedure syntax has the following parts:
Name |
Type |
Description |
lHour |
Long |
Return value: hour day between 0 and 23 |
dt |
[Val] DateTime |
Date time if given |
If date time is not specified, current date time is used.
print Hour() ! prints current day "13"
print Hour(dt) ! prints hour of "dt"