SQL Function Reference

SEC_TO_TIME
Converts a number of seconds to a time value in the format HH:MM:SS.
MySQL
SEC_TO_TIME(seconds)
seconds
The number of seconds.
Examples
MySQL
SELECT SEC_TO_TIME(3661);