Course
Simulator
More
Premium
Log in
SQL Function Reference
Functions
SEC_TO_TIME
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
)
;