Calculate total seconds in PHP DateInterval

Could you not compare the time stamps instead?

$now = new DateTime('now');
$diff = $date->getTimestamp() - $now->getTimestamp()

Leave a Comment