I have $adate; which contains:
$adate;
Tue Jan 4 07:59:59 2011
I want to add to this date the following:
$duration=674
Given the fact that $adate is a timestamp (if that's the case), you could do something like this:
$adate
$duration = 674165; $result_date = strtotime(sprintf('+%d seconds', $duration), $adate); echo date('Y-m-d H:i:s', $result_date);