Class TimeZone
Representation of a timezone.
<?php use ICanBoogie\TimeZone; $zone = new TimeZone('Europe/Paris'); echo $zone; // "Europe/Paris" echo $zone->offset; // 3600 echo $zone->location; // FR,48.86667,2.33333 echo $zone->location->latitude; // 48.86667
- DateTimeZone
- ┗ ICanBoogie\TimeZone
Methods summary
public static
from( mixed $source
)
: ICanBoogie\TimeZone
Returns a timezone according to the specified source.
Methods inherited from DateTimeZone
__set_state()
,
__wakeup()
,
getLocation()
,
getName()
,
getOffset()
,
getTransitions()
,
listAbbreviations()
,
listIdentifiers()
Constants summary
Constants inherited from DateTimeZone
AFRICA
,
ALL
,
ALL_WITH_BC
,
AMERICA
,
ANTARCTICA
,
ARCTIC
,
ASIA
,
ATLANTIC
,
AUSTRALIA
,
EUROPE
,
INDIAN
,
PACIFIC
,
PER_COUNTRY
,
UTC