In MySQL, the TO_SECONDS()
function returns the number of seconds since the year 0.
This function is not to be confused with the TIME_TO_SECONDS()
function, which returns the number of seconds in a given time value provided as an argument.
Continue reading