bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL TIME_TO_SEC() Function

Example

SELECT TIME_TO_SEC("19:30:10");

Definition and Usage

The TIME_TO_SEC() function converts a time value into seconds.

Syntax

TIME_TO_SEC(
time
)

Parameter Values

ParameterDescription
timeRequired. The time value

Technical Details

Works in:From MySQL 4.0

Previous

MySQL TIME_FORMAT() Function

Next

MySQL TIMEDIFF() Function