add(new DateInterval(sprintf('PT%sM', $sumOverSleepMinuite))); echo intval($date->format('H')) . "\n"; echo intval($date->format('i')) . "\n";