midnight_seconds

Returns an integer value in the range 0 to 86400 representing the number of seconds between midnight and time value specified in the argument. "Expression" can be a time value, a timestamp or a string representation of a time.

Syntax

midnight_seconds ( expression )

Example

midnight_seconds ( 01:45:34.056 )

Result

Returns 6334.