not quite sure if I follow you, but I understand you do have your reasons for a) storing the date as mysql timestamp and b) doing the calculations in php.
if so, still shouldn't be much of a problem, from my understanding you could simply fetch the timestamp as unix timestamp in the query, then do your calculations, like
SELECT when, UNIX_TIMESTAMP(when) AS unixwhen FROM table ...
and then access it with
$when = $row['unixwhen'];