Oracle Convert Seconds to Hours:Minutes:Seconds

user1430989 picture user1430989 · Jun 12, 2012 · Viewed 126.8k times · Source

I have a requirement to display user available time in Hours:Minutes:Seconds format from a given total number of seconds value. Appreciate if you know a ORACLE function to do the same. I'm using Oracle.

Thank you for your time.

Answer

vogash picture vogash · Oct 23, 2012

Try this one. Very simple and easy to use

select to_char(to_date(10000,'sssss'),'hh24:mi:ss') from dual;