finding out difference between two times

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

    You need strtotime('14:30') rather than strtotime(143000)

    Edit: Actually to my surprise, strtotime(143000) does seem to have the desired effect but only for double-digit hours so I still wouldn't rely on it. Anyway it's not the cause of your problem ;)

    0 讨论(0)
提交回复
热议问题