Syntax:
TO_SECONDS(expr)

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

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

