For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2005 > #35474 [Csd->Bgs]: Error in date() Examples









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #35474 [Csd->Bgs]: Error in date() Examples
vrana@php.net

2005-11-29, 7:56 am

ID: 35474
Updated by: vrana@php.net
Reported By: dave at ilovejackdaniels dot com
-Status: Closed
+Status: Bogus
Bug Type: Documentation problem
Operating System: Any
PHP Version: Irrelevant
New Comment:

Not a bug.


Previous Comments:
------------------------------------------------------------------------

[2005-11-29 13:34:24] dave at ilovejackdaniels dot com

Ahhh. My mistake - thanks.

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

[2005-11-29 13:32:29] sniper@php.net

Not inside single quotes.

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

[2005-11-29 13:23:02] dave at ilovejackdaniels dot com

Description:
------------
There is an error in the examples of date() usage:

$today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day.

and:

$today = date('H:m:s \m \i\s\ \m\o\n\t\h'); // 17:03:17 m is month

\t in date() will produce a tab rather than a "t". The "t"s above
should be double-escaped, or the outputs should be changed to show tabs
instead of "t"s.



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


--
Edit this bug report at http://bugs.php.net/?id=35474&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com