Course
Simulator
More
Premium
Log in
SQL Function Reference
Functions
TIME_TO_SEC
TIME_TO_SEC
Converts a time value into the number of seconds.
MySQL
TIME_TO_SEC
(
time
)
time
The time value to convert.
Examples
MySQL
SELECT
TIME_TO_SEC
(
'01:02:03'
)
;