finding out difference between two times

前端 未结 7 2019
醉话见心
醉话见心 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:33

    You can use $hour = ($end - $t1)/(60*60)

    In this the time format is (seconds*minutes*days*months*years) => (60*60*2)

提交回复
热议问题