Bug #14742: Example is wrong
| From: | php at genealogie dot com | Date: | Fri, 28 Dec 2001 18:15:52 +0000 |
| Subject: | Bug #14742: Example is wrong | ||
| Groups: | php.dev php.doc | ||
| Request: | Send a blank email to php-dev+get-75208@lists.php.net to get a copy of this message | ||
From: php@genealogie.com
Operating system: don\'t care
PHP version: 4.1.1
PHP Bug Type: Documentation problem
Bug description: Example is wrong
http://download.php.net/manual/en/function.strftime.php
This is a mistake.
print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_CA");
fr is the French language
CA is a country, Canada in this case.
So, fr_CA is likely Quebec Time or Eastern Time.
This example should be replaced with:
print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_FR");
Denis
--
Edit bug report at: http://bugs.php.net/?id=14742&edit=1