note 101746 deleted from intldateformatter.localtime by danbrown

From: Date: Sat, 08 Jan 2011 18:46:43 +0000
Subject: note 101746 deleted from intldateformatter.localtime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175546@lists.php.net to get a copy of this message
Note Submitter: Timo K ---- 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);

« previous php.notes (#175546) next »