How do I convert a timestamp from a MySql database (type timestamp) into seconds since the Unix Epoch
I thought this would do the trick:
$myTime = 20050314000000;
$newTime = date('U', $myTime);
$newTime is coming out to some date in the year 2017...obviously not correct.
Please help