FAQ
From:
Operating system: Linux / Irrelevant
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Simple date mistake !

Description:
------------
---
From manual page:
http://www.php.net/function.date#refsect1-function.date-examples
---
In the French section but not in the English section.
In exemple 4, we have
"// Aujourd'hui, le 12 Mars 2001, 5:16:18 pm, Fuseau horaire
// Mountain Standard Time (MST)"
=> Today : 12th March 2001, 5:16:18

2nd line befor the end, we have :
$today = date('H:m:s \m \e\s\t\ \l\e\ \m\o\i\s'); // 17:16:18 m est le
mois
"m stand for month".
ok, but the result should be // 17:03:18
So the difference with the next line should be easier to understand :
$today = date("H:i:s"); // 17:16:18


--
Edit bug report at https://bugs.php.net/bug.php?id=55729&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55729&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55729&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55729&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55729&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55729&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55729&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55729&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55729&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55729&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55729&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55729&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55729&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55729&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55729&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55729&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55729&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55729&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55729&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55729&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55729&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55729&r=mysqlcfg

Search Discussions

  • Yannick at Sep 23, 2011 at 4:53 am
    Edit report at https://bugs.php.net/bug.php?id=55729&edit=1

    ID: 55729
    Updated by: yannick@php.net
    Reported by: samuel-kay at 401kay dot fr
    Summary: [FR] Simple date mistake !
    -Status: Open
    +Status: Closed
    Type: Documentation Problem
    Package: Translation problem
    Operating System: Irrelevant
    PHP Version: Irrelevant
    -Assigned To:
    +Assigned To: yannick
    Block user comment: N
    Private report: N

    New Comment:

    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.




    Previous Comments:
    ------------------------------------------------------------------------
    [2011-09-23 04:52:32] yannick@php.net

    Automatic comment from SVN on behalf of yannick
    Revision: http://svn.php.net/viewvc/?view=revision&revision=317175
    Log: Fix bug #55729

    ------------------------------------------------------------------------
    [2011-09-19 20:14:23] samuel-kay at 401kay dot fr

    Description:
    ------------
    ---
    From manual page: http://www.php.net/function.date#refsect1-function.date-examples
    ---
    In the French section but not in the English section.
    In exemple 4, we have
    "// Aujourd'hui, le 12 Mars 2001, 5:16:18 pm, Fuseau horaire
    // Mountain Standard Time (MST)"
    => Today : 12th March 2001, 5:16:18

    2nd line befor the end, we have :
    $today = date('H:m:s \m \e\s\t\ \l\e\ \m\o\i\s'); // 17:16:18 m est le mois
    "m stand for month".
    ok, but the result should be // 17:03:18
    So the difference with the next line should be easier to understand :
    $today = date("H:i:s"); // 17:16:18



    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-doc-bugs @
categoriesphp
postedSep 19, '11 at 8:14p
activeSep 23, '11 at 4:53a
posts2
users2
websitephp.net

People

Translate

site design / logo © 2019 Grokbase