In Oracle, you use the following: select to_char(sysdate,'hh24:mi') as current_time from dual;
Related tip from bad experience: never change the OS time when the database is up. Ouch!