TIME_TO_SEC
TIME_TO_SEC() converts a time value to the number of seconds, returning a DOUBLE that preserves microseconds.
Syntax
TIME_TO_SEC(time)Description
Examples
SELECT TIME_TO_SEC('22:23:00');
+-------------------------+
| TIME_TO_SEC('22:23:00') |
+-------------------------+
| 80580 |
+-------------------------+SELECT TIME_TO_SEC('00:39:38');
+-------------------------+
| TIME_TO_SEC('00:39:38') |
+-------------------------+
| 2378 |
+-------------------------+Last updated
Was this helpful?

