SECONDS_BETWEEN
SECONDS_BETWEEN function (Date & Time) computes the number of seconds between date arguments d1 and d2, which is semantically equal to d2 - d1.
Syntax
SECONDS_BETWEEN(d1, d2)
Description
Computes the number of seconds between date arguments d1 and d2, which is semantically equal to d2 - d1.
Example
SECOND(‘2014-03-25 12:34:56.789’)
This example returns the value 2,678,400 as the number of seconds between the two specified dates.