how to calculate time difference in php?
php $start = strtotime('12:01:00'); $end = strtotime('13:16:00'); $mins = ($end - $start) / 60; echo $mins; ?> Subtract the times and divide by 60. My solution to find the difference between two dates is here. With this function you can find differences like seconds, minutes, hours, days, years and months.