HOUR

HOUR(expr)

Returns the hour for the datetime specified by expr.