This function extracts the hour portion of a specified Time value.
Parameter
a - A Time value.
Return value
The return value is an Integer.
Example
Suppose the time is 10:05:26. The return value of the following statement is 10.
Hour(ToTime(10, 5, 26))
This function extracts the hour portion of the current time.
Return value
The return value is an integer.
Example
If the current time is 8:15:30, the return value of the following statement is 8.
Hour()
This function extracts the hour portion of a specified TimeStamp value.
Parameter
a - A TimeStamp value.
Return value
The return value is an Integer.
Example
Suppose the datetime is Oct. 15,1999 9:35:22. The return value of the following statement is 9.
Hour(ToDateTime(1999,10,15,9,35,22))