Javatpoint Logo
Javatpoint Logo

MySQL Date/Time time_to_sec() Function

The time_to_sec() is a MySQL date/time function. It is used to convert the time into seconds.

Syntax

Parameter:

Time: time to be converted.

Example 1

Output:


MySQL time_to_sec() Function

Example 2

Output:


MySQL time_to_sec() Function
Next TopicMySQL datetime




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA