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

date_timezone_get

Description

The date_timezone_get of Date / Time for PHP return time zone relative to given DateTime.

Syntax

date_timezone_get ( DateTimeInterface $object ) : DateTimeZone

Parameters

object

A DateTime object returned by date_create()

Return

Returns a DateTimeZone object on success or FALSE on failure.

Examples

1

<?

$object = date_create();

$return = date_timezone_get($object);

echo timezone_name_get($return);

?>
UTC
HomeMenu