diff --git a/reference/datetime/functions/time.xml b/reference/datetime/functions/time.xml index 6a9b88747b..bd91b30585 100644 --- a/reference/datetime/functions/time.xml +++ b/reference/datetime/functions/time.xml @@ -1,5 +1,5 @@ - + time @@ -30,6 +30,8 @@ $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"; +// or using strtotime(): +echo 'Next Week: '. date('Y-m-d', strtotime('+1 week')) ."\n"; ?> ]]> @@ -37,7 +39,8 @@ echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";