Return a time value based on a specified seconds value:
SELECT SEC_TO_TIME(1);
Try it Yourself »
The SEC_TO_TIME() function returns a time value (in format HH:MM:SS) based on the specified seconds.
SEC_TO_TIME(
seconds)
Parameter | Description |
---|---|
seconds | Required. The number of seconds. Both positive or negative values are allowed |
Works in: | From MySQL 4.0 |
---|
Return a time value based on a specified seconds value:
SELECT SEC_TO_TIME(-6897);
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!