Syntax
HOUR(time)
Purpose
You can call this function to return the hour part of time.
Examples
obclient> SELECT HOUR('10:05:03');
+------------------+
HOUR('10:05:03')
+------------------+
10
+------------------+
1 row in set (0.01 sec)
obclient> SELECT HOUR('272:59:59');
+-------------------+
HOUR('272:59:59')
+-------------------+
272
+-------------------+
1 row in set (0.01 sec)