开发者

Check if a time in a timezone is elapsed in php?

开发者 https://www.devze.com 2023-02-14 23:17 出处:网络
H开发者_如何学JAVAere\'s the time entered by a user CDT 2011-02-01 16:30:00 How do i know that if that time was passed already in php?

H开发者_如何学JAVAere's the time entered by a user CDT 2011-02-01 16:30:00

How do i know that if that time was passed already in php?

Thanks


$usertime = strtotime('CDT 2011-02-01 16:30:00');
if (time() > $usertime) echo 'time passed';
0

精彩评论

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

关注公众号