Hour Function/text/sbasic/shared/03030201.xhpHour functionHour FunctionReturns the hour from a time value that is generated by the TimeSerial or the TimeValue function.Syntax:Hour (Number)Return value:IntegerParameters: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 expressionPrint Hour(TimeSerial(12,30,41))returns the value 12.Example:Sub ExampleHourPrint "The current hour is " & Hour( Now )End Sub