Home Menu

date_timezone_get

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

<?

$object = date_create();

$return = date_timezone_get($object);

echo timezone_name_get($return);

?>
UTC

PHP

JesusBible
HTMLCSSJSPHPSVGMore
AboutTerms