|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-11 19:14 UTC] nlopess@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
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.