hour(date) - Returns the hour of date date is a string in the format of 'yyyy-MM-dd HH:mm:ss' or 'HH:mm:ss'. Example: > SELECT hour('2009-07-30 12:58:59') FROM src LIMIT 1; 12 > SELECT hour('12:58:59') FROM src LIMIT 1; 12