#13199 [Opn->WFx]: Punctuation of month abbreviation in date()

From: Date: Thu, 11 Aug 2005 17:14:02 +0000
Subject: #13199 [Opn->WFx]: Punctuation of month abbreviation in date()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83382@lists.php.net to get a copy of this message
ID: 13199 Updated by: nlopess@php.net Reported By: mail at scottbrinker dot com -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: Red Hat Linux 7.1 PHP Version: 4.0.6 New Comment: This is too magic, IMHO. Previous Comments: ------------------------------------------------------------------------ [2001-09-07 14:07:52] 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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=13199&edit=1

« previous php.bugs (#83382) next »