Req #47185 [Opn->Wfx]: modification to date() function

From: Date: Wed, 11 Jan 2017 16:25:00 +0000
Subject: Req #47185 [Opn->Wfx]: modification to date() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-206523@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=47185&edit=1 ID: 47185 Updated by: heiglandreas@php.net Reported by: pinh3ad at hotmail dot com Summary: modification to date() function -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Date/time related Operating System: * PHP Version: 5.2CVS-2009-01-21 (snap) Block user comment: N Private report: N New Comment: This issue is by now over 7 years old and targets an unsupported version of PHP. As it is a very special usecase and can be done in userland without issue I'm closing this. Should need arise feel free to reopen the issue. Previous Comments: ------------------------------------------------------------------------ [2014-03-12 14:42:57] coden at bravozulu dot bz I ran into this issue, and the solution I came up with was to write my own <a href="http://bravozulu.bz/2014/03/formatting-months-with-ap-stlye">AP Style month format function</a>. It's actually a pretty simple use of strt_replace() to find month names in PHP date strings and convert them to AP Style. This shouldn't be done on any date that needs further processing, since PHP's other date formatting functions may not be able to consistently read all of the AP style dates. You can check out the function here: http://bravozulu.bz/2014/03/formatting-months-with-ap-stlye/ ------------------------------------------------------------------------ [2009-01-21 17:38:46] pinh3ad at hotmail dot com Description: ------------ A nice addition to the date function for month would be a predefined AP-style(Associated press style) month names. (i.e. date("p j, Y"); "p" being the AP month name??). AP-style month abbreviations are used a lot for publication dates and sourcing of content. AP Month abbreviations are different from a 3 letter abbreviation.(Jan., Feb., March, April, May, June, July, Aug., Sept., Oct., Nov., Dec.). Short month names are spelled out, long names are abbreviated. This is a fairly common practice editorially speaking. A really nice to have feature include. Thanks ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=47185&edit=1

« previous php.bugs (#206523) next »