I have for example:
$aaa = '12:00:00';
$bbb = '12:45:00';
and
$ccc = '12:00:00';
$ddd = '14:00:00';
and
$eee = '12:00:00';
$fff = '14:11:00';
and
$ggg = '12:00:00';
$hhh = '09:00:00';
How can i compare $aaa with $bbb, $ccc with $ddd etc and check if between these hours is minimum 2 hours difference?
$aaa and $bbb should return false
$ccc and $ddd shoud return true
$eee and $fff should return true
$ggg and $hhh should return false
How can i make it? Is any method in PHP for this?