SEC_TO_TIME
sec_to_timeβ
descriptionβ
Syntaxβ
TIME sec_to_time(INT timestamp)
The parameter is a timestamp of type INT, and the function returns a time of type TIME.
exampleβ
mysql >select sec_to_time(time_to_sec(cast('16:32:18' as time)));
+----------------------------------------------------+
| sec_to_time(time_to_sec(CAST('16:32:18' AS TIME))) |
+----------------------------------------------------+
| 16:32:18 |
+----------------------------------------------------+
1 row in set (0.53 sec)
keywordsβ
SEC_TO_TIME