|
IntlDateFormatter::getLocaledatefmt_get_localeGet the locale used by formatter DescriptionObject-oriented style
public stringfalse IntlDateFormatter::getLocale(int
$type = ULOC_ACTUAL_LOCALE )Procedural style stringfalse datefmt_get_locale(IntlDateFormatter
$formatter , int $type = ULOC_ACTUAL_LOCALE )Get locale used by the formatter. Parameters
Return Values
The locale of this formatter, or ExamplesExample #1 datefmt_get_locale example
Example #2 OO example
The above example will output: locale of the formatter is : en First Formatted output is Wednesday, December 31, 1969 4:00:00 PM PT locale of the formatter is : de Second Formatted output is Mittwoch, 31. Dezember 1969 16:00 Uhr GMT-08:00 See Also
|