note 94502 added to class.intldateformatter
| From: | omidmr at gmail dot com | Date: | Mon, 09 Nov 2009 11:02:15 +0000 |
| Subject: | note 94502 added to class.intldateformatter | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162658@lists.php.net to get a copy of this message | ||
I can find available calendars here:
http://site.icu-project.org/charts/comparison
Check "ICU4C 3.8" column.
for example:
<?php
$fmt = new IntlDateFormatter( "fa_IR@calendar=persian" ,IntlDateFormatter::FULL,
IntlDateFormatter::FULL, 'Asia/Tehran',IntlDateFormatter::TRADITIONAL );
echo "Formatted output is ".$fmt->format(time()) . "\n";
?>
the result should be something like:
Formatted output is Ø¯ÙØ´Ùب٠۱۸ آبا٠۱۳۸۸Ø
ساعت Û±Û´:Û±Ûµ:ÛµÛ¹ (ÙÙØª Ø§ÛØ±Ø§Ù)
----
Server IP: 69.147.83.197
Probable Submitter: 94.75.216.184
----
Manual Page -- http://www.php.net/manual/en/class.intldateformatter.php
Edit -- https://master.php.net/note/edit/94502
Del: integrated -- https://master.php.net/note/delete/94502/integrated
Del: useless -- https://master.php.net/note/delete/94502/useless
Del: bad code -- https://master.php.net/note/delete/94502/bad+code
Del: spam -- https://master.php.net/note/delete/94502/spam
Del: non-english -- https://master.php.net/note/delete/94502/non-english
Del: in docs -- https://master.php.net/note/delete/94502/in+docs
Del: other reasons-- https://master.php.net/note/delete/94502
Reject -- https://master.php.net/note/reject/94502
Search -- https://master.php.net/manage/user-notes.php