note 101746 added to intldateformatter.localtime
| From: | TimoK at osu1 dot php dot net | Date: | Sat, 08 Jan 2011 18:44:33 +0000 |
| Subject: | note 101746 added to intldateformatter.localtime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175543@lists.php.net to get a copy of this message | ||
Examples #1 and #2 in documentation (2010-01-08) produce Fatal Error if written literally:
Example #1:
$arr = datefmt_localtime( $fmt, "Wednesday, December 31, 1969 4:00:00 PM PT",0);
Example #2:
$arr = $fmt->localtime( "Wednesday, December 31, 1969 4:00:00 PM PT",0);
The last argument has to be variable, not 0 or some other integer. Replace these lines with the
following:
Example #1:
$start = 0;
$arr = datefmt_localtime( $fmt, "Wednesday, December 31, 1969 4:00:00 PM PT", $start);
Example #2:
$start = 0;
$arr = $fmt->localtime( "Wednesday, December 31, 1969 4:00:00 PM PT", $start);
----
Server IP: 69.147.83.197
Probable Submitter: 84.249.77.207
----
Manual Page -- http://www.php.net/manual/en/intldateformatter.localtime.php
Edit -- https://master.php.net/note/edit/101746
Del: integrated -- https://master.php.net/note/delete/101746/integrated
Del: useless -- https://master.php.net/note/delete/101746/useless
Del: bad code -- https://master.php.net/note/delete/101746/bad+code
Del: spam -- https://master.php.net/note/delete/101746/spam
Del: non-english -- https://master.php.net/note/delete/101746/non-english
Del: in docs -- https://master.php.net/note/delete/101746/in+docs
Del: other reasons-- https://master.php.net/note/delete/101746
Reject -- https://master.php.net/note/reject/101746
Search -- https://master.php.net/manage/user-notes.php