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 echo $zone->is_utc; // false echo $zone->is_local; // true
- DateTimeZone
-
ICanBoogie\TimeZone
Methods summary
public static
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
string
|
|
protected
integer
|
|
protected
boolean
|
|
protected
boolean
|
|
public
string
|
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
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. |
public read-only
boolean
|
$is_utc
|
public read-only
boolean
|
$is_local
|