php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #13199 Punctuation of month abbreviation in date()
Submitted: 2001-09-07 14:07 UTC Modified: 2005-08-11 19:14 UTC
Votes:9
Avg. Score:4.2 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:3 (33.3%)
Same OS:2 (22.2%)
From: mail at scottbrinker dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.0.6 OS: Red Hat Linux 7.1
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: mail at scottbrinker dot com
New email:
PHP Version: OS:

 

 [2001-09-07 14:07 UTC] mail at scottbrinker dot com
When calling date with format character "M", the three-letter abbreviation is returned; however, when one wants to place a period after this three letter abbreviation, there is trouble in May...

For example:
date("M.", $january_date) ====> Jan.
date("M.", $february_date) ===> Feb.
date("M.", $may_date) ========> May. (not an abbreviation!)

I know all of this can be fixed with a few lines of code that checks to see if the month is May before adding the period, but it seems to me that an "abbreviated three-letter textual month" format character could be valuable.

But, then the subject of AP-style abbreviations comes up... Their the list of months and abbreviations (or lack-thereof) reads:
Jan., Feb., March, April, May, June, July, Aug., Sept., Oct., Nov., Dec. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-11 19:14 UTC] nlopess@php.net
This is too magic, IMHO.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC