Hello I am trying to compare a time during with Hours:Minutes:Seconds format using strtotime function but there is a probleme if Hours is more than 24
PHP Code:
$time_duration_1 = '102:44:18';
$time_duration_2 = '87:42:19';
if(strtotime($time_duration_1) > strtotime($time_duration_2))
{
return true;
}else{
return false;
}
Is there any handy function for that kind of situation? or shall I do the checking manually hard coded?
Thanks in advance
Make a function to calculate your hours, minutes and seconds: