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
A better way is to use http://php.net/manual/en/datetime.diff.php
$start_t = new DateTime($start_time); $current_t = new DateTime($current_time); $difference = $start_t ->diff($current_t ); $return_time = $difference ->format('%H:%I:%S');