php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47974 strftime documentation page: %F example should use %Y, not %y
Submitted: 2009-04-15 16:46 UTC Modified: 2009-04-21 00:31 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: cl at broughton dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2009-04-15 16:46 UTC] cl at broughton dot com
Description:
------------
in manual/en/function.strftime.php
function strftime - Format a local time/date
in "Time and Date Stamps"
in %F, text "Same as "%y-%m-%d" (commonly used in database datestamps)"
should use uppercase for %y, producing
"Same as "%Y-%m-%d" (commonly used in database datestamps)"
Reason: %y generates two digit year, but text refers to 4-digit year which %Y will generate.
Many thanks in advance. PHP documentation is the best in the universe!
-bob


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-21 00:31 UTC] fa@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of fa
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3450dae64b5f5b38af024d8f65c3a23cc45014b9
Log: fixed bug #47974
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 10:00:01 2026 UTC