note 113685 added to function.nl-langinfo
| From: | mark at moderndeveloper dot com | Date: | Fri, 15 Nov 2013 15:23:44 +0000 |
| Subject: | note 113685 added to function.nl-langinfo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-197530@lists.php.net to get a copy of this message | ||
If you are looking for the stand-alone (nominative form) of a month, you may not be able to use
nl_langinfo(), but with PHP 5.5 you can use something like:
<?php
echo IntlDateFormatter::formatObject(
new DateTime('2013-01-01 00:00:00 Europe/Moscow'),
'LLLL',
'ru_RU');
?>
Note that the format uses the ICU patterns, not the PHP date() patterns.
----
Server IP: 192.41.45.150
Probable Submitter: 108.217.150.175
----
Manual Page -- http://php.net/manual/en/function.nl-langinfo.php
Edit -- https://master.php.net/note/edit/113685
Del: integrated -- https://master.php.net/note/delete/113685/integrated
Del: useless -- https://master.php.net/note/delete/113685/useless
Del: bad code -- https://master.php.net/note/delete/113685/bad+code
Del: spam -- https://master.php.net/note/delete/113685/spam
Del: non-english -- https://master.php.net/note/delete/113685/non-english
Del: in docs -- https://master.php.net/note/delete/113685/in+docs
Del: other reasons-- https://master.php.net/note/delete/113685
Reject -- https://master.php.net/note/reject/113685
Search -- https://master.php.net/manage/user-notes.php