8 ms·
You know you can do this: $idf = new IntlDateFormatter('fa_IR@calendar=persian', IntlDateFormatter::FULL, IntlDateFormatter::FULL,"Asia/Teh
by amir 14y ago
You know you can do this:
$idf = new IntlDateFormatter('fa_IR@calendar=persian',
IntlDateFormatter::FULL,
IntlDateFormatter::FULL,"Asia/Tehran",
IntlDateFormatter::TRADITIONAL);
right?
PHP has a wrapper for ICU.
- sallar 14y agoSure, but it's PHP 5 >= 5.3.0. jDateTime requires 5.2. IntlDateFormatter did not exist at the time of writing this code.