php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #20480 strftime("%R") doesn't show the time
Submitted: 2002-11-18 07:35 UTC Modified: 2002-11-26 14:41 UTC
From: jonathan at tricolon dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.2.2 OS: Windows 2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jonathan at tricolon dot com
New email:
PHP Version: OS:

 

 [2002-11-18 07:35 UTC] jonathan at tricolon dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-18 07:37 UTC] 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-26 14:41 UTC] k.schroeder@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Aug 13 17:00:02 2025 UTC