HOUR

Returns the hour part of a value. The argument must be a time, timestamp, time duration, or timestamp duration.

Example:

Using the CL_SCHED sample table, select all the classes that start in the afternoon.

  SELECT * FROM CL_SCHED
    WHERE HOUR(STARTING) BETWEEN 12 AND 17