PHP 4.0 Bug #9988 Updated: Documentation has incorrect example for date()

From: Date: Sat, 07 Apr 2001 05:32:21 +0000
Subject: PHP 4.0 Bug #9988 Updated: Documentation has incorrect example for date()
Groups: php.dev 
Request: Send a blank email to php-dev+get-51097@lists.php.net to get a copy of this message
ID: 9988 Updated by: danbeck Reported By: jcarnahan@networq.com Old-Status: Open Status: Closed Bug Type: Documentation problem Assigned To: Comments: Corrected in phpdoc cvs. Previous Comments: --------------------------------------------------------------------------- [2001-03-26 03:44:00] jcarnahan@networq.com The documentation for the date() function at: http://www.php.net/manual/en/function.date.php 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 - jcarnahan@networq.com --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9988&edit=2

« previous php.dev (#51097) next »