Fwd: [PHP-NOTES] note 88484 deleted from function.date by thiago
| From: | Thiago Pojda | Date: | Mon, 26 Jan 2009 19:03:52 +0000 |
| Subject: | Fwd: [PHP-NOTES] note 88484 deleted from function.date by thiago | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969380082@lists.php.net to get a copy of this message | ||
Can someone please commit this for me?
Took me a while to figure this bug actually messes up the point of this
example.
Thanks :)
Thiago Henrique Pojda
http://nerdnaweb.blogspot.com
---------- Forwarded message ----------
From: <thiago@php.net>
Date: Mon, Jan 26, 2009 at 3:55 PM
Subject: [PHP-NOTES] note 88484 deleted from function.date by thiago
To: php-notes@lists.php.net
Note Submitter: blog.frozenonline.com
----
The documentation has the following (incorrect) example
<?php
$today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST
2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:16:18 m is month
$today = date("H:i:s"); // 17:16:18
?>
If we want to maintain consistency with the other examples provided in the
same block of code, the second line (H:m:s) is incorrect. The example shows
the output of "H:m:s" as "17:16:18"
This should instead be "17:03:18"
Here is the corrected example:
<?php
$today = date("D M j G:i:s T Y"); // Sat Mar 10 17:16:18 MST
2001
$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:18 m is month
$today = date("H:i:s"); // 17:16:18
?>
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Attachment: [text/xml] date.xml
Attachment: [application/octet-stream] date.patch
Attachment: [text/xml] date.xml
Attachment: [application/octet-stream] date.patch