Hour function
Syntax
Hour(time_value)
Description
Use the Hour function to extract a Number value for the hour of the day based on a time or DateTime value. The value returned is a whole integer and is not rounded to the nearest hour.
Parameters
| Parameter | Description |
|---|---|
|
time_value |
A DateTime or Time value. |
Returns
Returns a Number equal to a whole integer value from 0 to 23 representing the hour of the day.
Example
If &TIMEOUT contains a Time value equal to 04:59:59 PM, the following example sets &TIMEOUT_HOUR to 16:
&TIMEOUT_HOUR = Hour(&TIMEOUT);
Related Topics