#20480 [Opn->Csd]: strftime("%R") doesn't show the time

From: Date: Tue, 26 Nov 2002 20:42:00 +0000
Subject: #20480 [Opn->Csd]: strftime("%R") doesn't show the time
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969349959@lists.php.net to get a copy of this message
ID: 20480 Updated by: k.schroeder@php.net Reported By: jonathan@tricolon.com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Windows 2000 PHP Version: 4.2.2 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2002-11-18 07:37:23] derick@php.net From the manual page php.net/strftime: Note: Not all conversion specifiers may be supported by your C library, in which case they will not be supported by PHP's strftime(). This means that e.g. %e, %T and %D (there might be more) will not work on Windows. apperently %R isn't supported either -> doc problem. ------------------------------------------------------------------------ [2002-11-18 07:35:03] jonathan@tricolon.com Hi, running on a webserver of our client: Windows 2000, IIS 5, PHP 4.2.2. The command strftime("%R", $timestamp) doesn't display the time as specified in the docs (hh:mm in 24 hours notation), while this does work on our test webserver which is a Linux, Apache, PHP-machine. Substituting this by strftime("%H:%M", $timestamp) does work correctly and has the same result. Thanks, Jonathan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20480&edit=1

« previous php.doc (#969349959) next »