php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #14742 Example is wrong
Submitted: 2001-12-28 13:15 UTC Modified: 2002-01-04 00:58 UTC
From: php at genealogie dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.1.1 OS: don't care
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at genealogie dot com
New email:
PHP Version: OS:

 

 [2001-12-28 13:15 UTC] php at genealogie dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-04 00:58 UTC] imajes@php.net
I've updated the documentation.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 12:01:27 2024 UTC