UNIX_TIMESTAMP returns seconds since 1970-01-01 00:00:00 UTCSELECT
UNIX_TIMESTAMP()
If any date is passed to the function as a parameter, it will calculate seconds since 1970-01-01 00:00:00 to the passed date.
In this example, the function returns seconds to 2021-03-25 SELECT
UNIX_TIMESTAMP('2021-03-25')