Description
The Hour function extracts the hour portion of a Time value and returns it as a whole number.
Arguments
x is a Time value or DateTime value.
Action
The Hour function extracts the hour portion of a Time value and returns it as a whole number.
Typical uses
Use this function anytime you need to display just the hour portion of a Time value or to perform calculations based on hours.
Examples
Hour(CTime(10, 20, 22))
Returns 10.
Hour(CTime(10, 00, 30)) - Hour(CTime(6, 00, 00))
Returns 4.