date_timezone_get
Description
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