Date Timestamp Functions Oracle PLSQL Tutorial

SQL>
SQL> SELECT
  2    EXTRACT(HOUR FROM TO_TIMESTAMP('01-JAN-2005 19:15:26',
  3      'DD-MON-YYYY HH24:MI:SS')) AS HOUR
  4  FROM dual;
      HOUR
----------
        19
SQL>
-