cvs: phpdoc /en/reference/datetime/functions time.xml

From: Date: Mon, 01 Jan 2007 10:34:56 +0000
Subject: cvs: phpdoc /en/reference/datetime/functions time.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969374660@lists.php.net to get a copy of this message
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>

« previous php.doc (#969374660) next »