private static function DatexIntlCalendar::intl in Datex 8
1 call to DatexIntlCalendar::intl()
- DatexIntlCalendar::__construct in src/
Datex/ DatexIntlCalendar.php
File
- src/
Datex/ DatexIntlCalendar.php, line 134
Class
Namespace
Drupal\datex\DatexCode
private static function intl($tz, $locale) {
$none = \IntlDateFormatter::NONE;
$tz = \IntlTimeZone::fromDateTimeZone($tz);
$cal = \IntlDateFormatter::TRADITIONAL;
return new \IntlDateFormatter($locale, $none, $none, $tz, $cal);
}