开发者

Check if a time in a timezone is elapsed 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜