DateTimeZone::getName
PHP 5 >= 5.2.0, PHP 7, PHP 8
DateTimeZone::getName - Returns the name of the timezone
Manual
DateTimeZone::getName(
): public string
Procedural style
stringtimezone_name_get DateTimeZoneobjectParameters
- object
-
The DateTimeZone for which to get a name.
Return Values
One of the timezone names in the list of timezones.