I wrote the following code to determine the amount of time that employees spend on a task:
$time1 = $row_TicketRS[\'OpenTime\']; $time2= $row_TicketRS[\'Clos
You can use $hour = ($end - $t1)/(60*60)
$hour = ($end - $t1)/(60*60)
In this the time format is (seconds*minutes*days*months*years) => (60*60*2)