php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50084 Support a.m. and p.m. (with periods)
Submitted: 2009-11-05 00:50 UTC Modified: 2017-01-11 17:37 UTC
Votes:33
Avg. Score:4.2 ± 0.9
Reproduced:30 of 30 (100.0%)
Same Version:17 (56.7%)
Same OS:7 (23.3%)
From: charles dot belov at sfmta dot com Assigned:
Status: Wont fix Package: Date/time related
PHP Version: 5.2.11 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: charles dot belov at sfmta dot com
New email:
PHP Version: OS:

 

 [2009-11-05 00:50 UTC] charles dot belov at sfmta dot com
Description:
------------
According to http://php.net/manual/en/function.date.php, date formatting offers two formats for Ante meridiem and Post meridiem:

a  	Lowercase Ante meridiem and Post meridiem  	am or pm
A 	Uppercase Ante meridiem and Post meridiem 	AM or PM

The Associated Press (AP) Stylebook specifies that these are to be written with a third format: "a.m." or "p.m." (lower case "am" and "pm" but with periods).

Please add this format to the possible time formats for Ante meridiem and Post meridiem.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-24 10:19 UTC] jani@php.net
-Package: Feature/Change Request +Package: Date/time related
 [2015-04-01 13:39 UTC] shanthiswaroop dot k at gmail dot com
This update will be very helpful!
 [2017-01-11 17:36 UTC] heiglandreas@php.net
-Status: Open +Status: Wont fix
 [2017-01-11 17:36 UTC] heiglandreas@php.net
This issue is by now more than 7 years old and targets an unsupported version of PHP.

As it is a very special usecase that can be achieved in userland code using f.e. str_replace('m', '.m.', $date->format('a')) I'm closing this.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC