hour

Returns the hour, an integer from 0 (midnight) to 23 (11:00 pm), from "time_expression". "Time_expression" can be a time value or a string representation of a time.

Syntax

hour ( time_expression )

Example

hour ( 01:22:45 )

Result

Returns 1.