php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33144 strftime() does not parse %n
Submitted: 2005-05-25 23:20 UTC Modified: 2005-05-25 23:31 UTC
From: jw at jwscripts dot com Assigned:
Status: Not a bug Package: Date/time related
PHP Version: 5.0.4 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jw at jwscripts dot com
New email:
PHP Version: OS:

 

 [2005-05-25 23:20 UTC] jw at jwscripts dot com
Description:
------------
The strftime() function does not translate %n into a new line character.

Reproduce code:
---------------
<pre>
<?php
print strftime("%c %n", time());
print strftime("%c %n", time());
?>
</pre>

Expected result:
----------------
05/25/05 23:17:21
05/25/05 23:17:21

Actual result:
--------------
05/25/05 23:17:21 05/25/05 23:17:21

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-25 23:31 UTC] jw at jwscripts dot com
Forgot to look on the MSN site; %n isn't supported on the Windows platform...
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 15:01:36 2025 UTC