php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #44580 Additions to date function formats
Submitted: 2008-03-31 13:21 UTC Modified: 2017-01-11 16:16 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: iankomar at gmail dot com Assigned:
Status: Wont fix Package: Date/time related
PHP Version: 5.2.5 OS: Ubuntu
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2008-03-31 13:21 UTC] iankomar at gmail dot com
Description:
------------
I would like to see a new way to "show" am/pm (a)in short-hand.. a(for am) and p (for pm).



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-31 00:17 UTC] cmb@php.net
-Package: Feature/Change Request +Package: Date/time related
 [2017-01-11 16:16 UTC] heiglandreas@php.net
-Status: Open +Status: Wont fix
 [2017-01-11 16:16 UTC] heiglandreas@php.net
As this issue is by now more that 8 years old and targets an unsupported version of PHP I'm closing this.

Also the request can easily be handled by userland code like this:

<?php
$date = new DateTime();
echo substr($date->format('a'), 0, 1);
?>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 04:01:27 2024 UTC