php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #2011 The strftime() function example is wrong.
Submitted: 1999-08-09 16:57 UTC Modified: 1999-08-09 17:15 UTC
From: fabian dot rodriguez at exocom dot qc dot ca Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.12 OS: RedHat 5.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fabian dot rodriguez at exocom dot qc dot ca
New email:
PHP Version: OS:

 

 [1999-08-09 16:57 UTC] fabian dot rodriguez at exocom dot qc dot ca
at http://www.php3.net/manual/function.strftime.php3
the online documentation gives the following example:

setlocale ("LC_TIME", "C");
print(strftime("%A in Finnish is "));
setlocale ("LC_TIME", "fi");
print(strftime("%A, in French "));
setlocale ("LC_TIME", "fr");
print(strftime("%A and in German "));
setlocale ("LC_TIME", "de");
print(strftime("%A.\n"));

The example should read:

setlocale ("LC_TIME", "C");
print(strftime("%A in Finnish is "));
setlocale ("LC_TIME", "fi");
print(strftime("%A, in French "));
setlocale ("LC_TIME", "fr_CA");
print(strftime("%A and in German "));
setlocale ("LC_TIME", "de");
print(strftime("%A.\n"));

The setlocale() fucntion should provide a link to the complete list of locales or a way to find it.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-09 17:15 UTC] eschmid at cvs dot php dot net
I  can't see an error in the documentation. The mentioned links works as suspected.
If I have overlooked something, please report.

-Egon
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 16:01:30 2024 UTC