Is there anyone sitting on a PHP function to convert a date of format 0000-00-00 00:00:00(datetimesql) to unix timestamp?
Another option as you have tagged this question with SQL: the MySQL functions FROM_UNIXTIME and UNIX_TIMESTAMP -> MySQL manual
FROM_UNIXTIME
UNIX_TIMESTAMP
SELECT UNIX_TIMESTAMP(datetime_column) FROM table
This usually is faster than a PHP function call.