$datetime1 = new DateTime('09:30 PM');
$datetime2 = new DateTime('10:45 PM');
$interval = $datetime1->diff($datetime2);
echo $interval->format('%hh %im');
Output -
1h 15m
$datetime1 = new DateTime('09:30 PM');
$datetime2 = new DateTime('10:45 PM');
$interval = $datetime1->diff($datetime2);
echo $interval->format('%hh %im');
Output -
1h 15m
For further actions, you may consider blocking this person and/or reporting abuse
Etienne Lebarillier -
david duymelinck -
Mahfuzur Rahman -
Parzival -
Top comments (0)