Returns the hour component of a time as number between 0-23.
The time to extract the hour from. For example: 11:30:25 or 2020-02-02 20:30:30.