php8.5
Home/ Manual/ intl / intltimezone/ IntlTimeZone::getDisplayName

IntlTimeZone::getDisplayName

PHP function Edit on GitHub ✎

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL >= 3.0.0a1)

Get a name of this time zone suitable for presentation to the user

Description

Oop (method):

IntlTimeZone::getDisplayName(bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, string|null $locale = null): string|false

Procedural:

intltz_get_display_name(IntlTimeZone $timezone, bool $dst = false, int $style = IntlTimeZone::DISPLAY_LONG, string|null $locale = null): string|false

Func

Parameters

dst
style
locale

Return Values

Source: reference/intl/intltimezone/getdisplayname.xml · from the official PHP manual (php/doc-en)