例子:<?php $nextWeek = time() + (7 * 24 * 60 * 60); // 7 days; 24 hours; 60 mins; 60secs echo 'Now: '. date('Y-m-d') ." "; echo 'Next Week: '. date('Y-m-d', $nextWeek) ." "; ?>输出:<pre>Now: 2005-03-30Next Week: 2005-04-07</pre>