Links

Attachments

Localized Versions

Syntax

TIME_TO_SEC(time)

Description

Returns the time argument, converted to seconds.

Starting with MariaDB 5.3, the value returned by TIME_TO_SEC is of
type DOUBLE. In previous versions of MariaDB (and MySQL) the
type was INT. See Microseconds in MariaDB
for more information on the feature that introduced this change.