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:
The way I'd solve that would be with mktime:
mktime
function getTimeFromString($time){ $time = explode(':', $time); return mktime($time[0], $time[1], $time[2]); } if(getTimeFromString($time_duration_1) > getTimeFromString($time_duration_2)){