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
ICanBoogie\Time\Zone
|
|
public
|
|
public
|
|
public
string
|
Methods inherited from DateTimeZone
getLocation(),
getName(),
getOffset(),
getTransitions(),
listAbbreviations(),
listIdentifiers()
Magic methods summary
Constants summary
Constants inherited from DateTimeZone
AFRICA,
ALL,
ALL_WITH_BC,
AMERICA,
ANTARCTICA,
ARCTIC,
ASIA,
ATLANTIC,
AUSTRALIA,
EUROPE,
INDIAN,
PACIFIC,
PER_COUNTRY,
UTC
Properties summary
Magic properties
public read-only
|
$location | |
#
Location information for the timezone. |
public read-only
string
|
$name | |
#
Name of the timezone. |
public read-only
integer
|
$offset | |
#
Timezone offset from UTC. |