开发者

How to calculate the time difference between two days in seconds

开发者 https://www.devze.com 2023-01-14 00:05 出处:网络
i have a php page . Here i will get the start time as query string (eg $startTime= \'8/27/2010 1:15:17 PM\')

i have a php page .

Here i will get the start time as query string (eg $startTime= '8/27/2010 1:15:17 PM')

Now i need to find out the total seconds between the current time and started time

Ho开发者_开发问答w can i find out this in php


echotime()-strtotime($startTime);

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号