UNIX_TIMESTAMP
returns seconds since
1970-01-01 00:00:00
UTC
SELECT 
    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')
by Valeri Tandilashvili
4 years ago
MySQL
Datetime functions
Full MySQL Course for Beginners
1
Pro tip: use ```triple backticks around text``` to write in code fences