From:             [EMAIL PROTECTED]
Operating system: N/A
PHP version:      4.0.4pl1
PHP Bug Type:     Documentation problem
Bug description:  Documentation has incorrect example for date()

The documentation for the date() function at:

Has one example:

$today = date("D M j g:i:s T Y"); // Sat Mar 10 15:16:08 MST 2001

Note that it appears "g" has yeilded "15" ... This is incorrect:

g - hour, 12-hour format without leading zeros; i.e. "1" to "12" 

G - hour, 24-hour format without leading zeros; i.e. "0" to "23" 

That should either be a capital "G" in the date() function, or the example output 
should be changed to indicate that the hour is in 12-hour format.

Jeff Carnahan - [EMAIL PROTECTED]

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to