Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

timezone_name_get

Description

The timezone_name_get of Date / Time for PHP returns the name of the timezone.

Syntax

timezone_name_get ( DateTimeZone $object ) : string

Parameters

object

The DateTimeZone for which to get a name.

Return

One of the timezone names in the list of timezones.

Examples

1

<?

$date = date_create();

$object = date_timezone_get($date);

$return = timezone_name_get($object);

echo $return;
UTC
HomeMenu