Calculating time elapsed
Need to calculate the number of seconds (hours) that have elapsed.
Start time: 2006-10-02 7:00:00
End Time: 2006-10-03 13:00:00
I know I have to convert the end points to something, and then find the difference. I just cant seem to find what I am looking for on PHP.net
Any help is apreached.
SOLUTION:
Start time: 2006-10-02 7:00:00
End Time: 2006-10-03 13:00:00
I know I have to convert the end points to something, and then find the difference. I just cant seem to find what I am looking for on PHP.net
Any help is apreached.
SOLUTION:
$date1= "2006-10-02";
$time1= "7:00:00";
$date2= "2006-10-03";
$time2= "13:00:00";
$hours = (strtotime($date2." ".$time2) -strtotime($date1." ".$time1))/(60*60);
