03-31-2017, 12:14 AM
@dave friend solution can be slightly simplify
PHP Code:
$start = new DateTime("2017-03-09 09:26:00");
$end = new DateTime("2017-03-11 09:25:00");
$interval = $start->diff($end);
echo $interval->format('%h hours %i minutes %S seconds');
A good decision is based on knowledge and not on numbers. - Plato