|
发表于 2010-1-26 16:37:53
|
显示全部楼层
<?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";
?>
上例的输出类似于:
Now: 2005-03-30
Next Week: 2005-04-07
不知道对有你帮助没 |
|