Tests whether the IntlDateFormatter can be used.
string $calendar: (optional) String calendar name to use for the date. Defaults to NULL.
string $langcode: (optional) String two letter language code to construct the locale string by the intlDateFormatter class. Defaults to NULL.
string $country: (optional) String two letter country code to construct the locale string by the intlDateFormatter class. Defaults to NULL.
bool TRUE if IntlDateFormatter can be used.
public function canUseIntl($calendar = NULL, $langcode = NULL, $country = NULL) {
$langcode = !empty($langcode) ? $langcode : $this->langcode;
$country = !empty($country) ? $country : $this->country;
$calendar = !empty($calendar) ? $calendar : $this->calendar;
return class_exists('IntlDateFormatter') && !empty($calendar) && !empty($langcode) && !empty($country);
}