Syntax:
TO_SECONDS(expr)

Given a date or datetime expr, returns the number of seconds since the
year 0. If expr is not a valid date or datetime value (including NULL),
it returns NULL.

URL: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html

