Hour Function [Runtime]
Returns the hour from a time value that is generated by the TimeSerial or the TimeValue function.
Number: Numeric expression that contains the serial time value that is used to return the hour value.
This function is the opposite of the TimeSerial function. It returns an integer value that represents the hour from a time value that is generated by the TimeSerial or the TimeValue function. For example, the expression
returns the value 12.
5 Invalid procedure call
Print "The current hour is " & Hour( Now )