Converts seconds to TIME format (HH:MM:SS). The inverse of TIME_TO_SEC().
TIMEDiperbarui: 13 Jun 2026SEC_TO_TIME(seconds)Number of seconds
1 SELECT SEC_TO_TIME(3600) AS time_val;
3600 seconds equals 1 hour.
1 SELECT SEC_TO_TIME(90061) AS time_val;
More than 24 hours results in 25:01:01.
1 SELECT task_name, 2 SEC_TO_TIME(duration_seconds) AS duration 3 FROM tasks;
Display duration in a readable time format.
Sudah paham SEC_TO_TIME? Latih langsung di browser
Latihan interaktif, langsung di browser.