php 明天,下个星期,时间函数

例子:
<?php $nextWeek = time() + (7 * 24 * 60 * 60); // 7 days; 24 hours; 60 mins; 60secs echo 'Now: '. date('Y-m-d') ."\n"; echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n"; ?>
输出:
<pre>Now:       2005-03-30
Next Week: 2005-04-07</pre>
posted @ 2016-01-22 13:14  绿尘枫  阅读(264)  评论(0编辑  收藏  举报