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:
Make a function to calculate your hours, minutes and seconds:
function formatHours($time){ $date = explode(':', $time); return ($date[0]*60*60)+($date[1]*60)+$date[2]; } if(formatHours($time_duration_1) > formatHours($time_duration_2)){ // ......