<?php $t1 = new DateTime('23:00:00'); $t2 = new DateTime('00:00:00'); if ($t2 === (new DateTime('00:00:00'))) { $t2 = new DateTime('tommorrow'); } print_r($t1->diff($t2));
You have javascript disabled. You will not be able to edit any code.