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