HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
MySQL Functions : Convert a time value into seconds
The TIME_TO_SEC() function converts a time value into seconds.
TIME_TO_SEC(time)
Parameter | Description |
---|---|
time | Required. The time value |
Works in: | From MySQL 4.0 |
---|
Convert a time value into seconds:
SELECT TIME_TO_SEC("00:00:05");
Convert a time value into seconds:
SELECT TIME_TO_SEC("03:30:00.999999");
Convert a time value into seconds:
SELECT TIME_TO_SEC("-03:30:00");