<?php
function checker($timestamp1, $timestamp2){
$date1 = new DateTime();
$date2 = new DateTime();
$date1->setTimestamp($timestamp1);
$date2->setTimestamp($timestamp2);
$interval = $date1->diff($date2);
// WHAT TO DO HERE?!?!?!
echo 'RESULT: '.$interval->format('%d.%m.%Y %H %i');
}
$a = strtotime('14.10.2024 00:00:10');
$b = strtotime('13.10.2024 23:59:00');
checker($a, $b);
?>