note 94502 deleted from class.intldateformatter by danbrown
| From: | danbrown@php.net | Date: | Mon, 09 Nov 2009 16:25:01 +0000 |
| Subject: | note 94502 deleted from class.intldateformatter by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162665@lists.php.net to get a copy of this message | ||
Note Submitter: omidmr at gmail dot com
----
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 Ø¯ÙØ´Ùب٠۱۸ آبا٠۱۳۸۸Ø
ساعت Û±Û´:Û±Ûµ:ÛµÛ¹ (ÙÙØª Ø§ÛØ±Ø§Ù)