Course
Simulator
More
Premium
Log in
MySQL 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 8.1
SEC_TO_TIME
(
seconds
)
seconds
The number of seconds.
Examples
MySQL 8.1
SELECT
SEC_TO_TIME
(
3661
)
;