I am trying to get diffrence in both the timestamp i dont know what i am missing.
parts of my codes here.
$newtime = 1368250840;
$oldtime = 1171502725;
$diffrence = $newtime - $oldtime;
echo $diffrence; // 196748115 till here its fine
$date = $date->setTimestamp("$diffrence"); // problem here
echo $date->format('H:i:s') . "\n";
I try changing it to
$date = $date->setTimestamp('$diffrence');
and this
$date = $date->setTimestamp(' . $diffrence . ');
Any solution plz :) Thanks