DateTimeInterface::getTimezoneDateTimeImmutable::getTimezoneDateTime::getTimezonedate_timezone_getReturn time zone relative to given DateTime DescriptionObject-oriented style
public DateTimeZonefalse DateTimeInterface::getTimezone()
public DateTimeZonefalse DateTimeImmutable::getTimezone()
public DateTimeZonefalse DateTime::getTimezone()
Procedural style DateTimeZonefalse date_timezone_get(DateTimeInterface
$object )Return time zone relative to given DateTime. Parameters
Return Values
Returns a DateTimeZone object on success
or ExamplesExample #1 DateTime::getTimezone example Object-oriented style
Procedural style
The above examples will output: Europe/London See Also
|