nlopess Mon Jan 1 10:34:56 2007 UTC
Modified files:
/phpdoc/en/reference/datetime/functions time.xml
Log:
typo in the example output. add also strtotime(+1 week) to the example
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/datetime/functions/time.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/datetime/functions/time.xml
diff -u phpdoc/en/reference/datetime/functions/time.xml:1.8
phpdoc/en/reference/datetime/functions/time.xml:1.9
--- phpdoc/en/reference/datetime/functions/time.xml:1.8 Tue Jul 11 07:05:04 2006
+++ phpdoc/en/reference/datetime/functions/time.xml Mon Jan 1 10:34:56 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<refentry id="function.time">
<refnamediv>
<refname>time</refname>
@@ -30,6 +30,8 @@
// 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";
?>
]]>
</programlisting>
@@ -37,7 +39,8 @@
<screen>
<![CDATA[
Now: 2005-03-30
-Next Week: 2005-04-07
+Next Week: 2005-04-06
+Next Week: 2005-04-06
]]>
</screen>
</example>