C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
| MySQL Date/Time time_to_sec() FunctionThe time_to_sec() is a MySQL date/time function. It is used to convert the time into seconds. Syntax
 select time_to_sec(time); Parameter:
 Time: time to be converted. Example 1
select time_to_Sec('12:56:12');
Output:   Example 2
 
select time_to_Sec('12:56:12.000002');
Output:   
Next TopicMySQL datetime
 |