finding out difference between two times

前端 未结 7 1961
醉话见心
醉话见心 2021-01-14 04:03

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         


        
7条回答
  •  再見小時候
    2021-01-14 04:25

    for example the start time is 09:19:00 and end time is 11:01:00 but it give me duration time only 1 hour which is wrong

    You are calculating the difference in hours. what is the correct result for "start time is 09:19:00 and end time is 11:01:00"

提交回复
热议问题