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 DateTimeZoneobject

Parameters

object

The DateTimeZone for which to get a name.

Return Values

One of the timezone names in the list of timezones.

Function DateTimeZone::getName:

  • Manual

Date and Time Functions

Most used PHP functions