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
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: iankomar at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 18:01:29 2024 UTC