Hour
Syntax
Hour(time_value)
Description
Returns the hour portion of the time value provided as a parameter.
Parameters
| Parameter | Description |
|---|---|
|
time_value |
A time value, such as the value returned by the Time() function. |
Returns
Returns the hour portion of the time value provided as a parameter.
Example
The following table presents examples of using the Hour function; the second example assumes that the current time is between 1:00 PM and 1:59:59 PM.:
| Expression | Result |
|---|---|
|
Hour(13:07:25) |
13 |
|
Hour(Time()) |
13 |