php 今天 昨天 明天 时间戳

2013年9月10日 16:26:25

echo strtotime('now'),'<br>';

echo strtotime('today'),'<br>';

echo strtotime('tomorrow'),'<br>';

echo strtotime('yesterday'),'<br>';

--------------------------------------

今天剩余的秒数:

$time_remain = strtotime('tomorrow') - time();

 

posted @ 2013-09-10 16:27  myD  阅读(452)  评论(0编辑  收藏  举报