$_params
$_params : array
Any configuration parameters for this class.
Base class for loading, parsing, and working with timezones.
This class is the central point to fetch timezone information from the timezone (Olson) database, parse it, cache it, and generate VTIMEZONE objects.
Usage:
$tz = new Horde_Timezone();
$tz->getZone('America/New_York')->toVtimezone()->exportVcalendar();
Documentation on the database file formats can be found at ftp://ftp.iana.org/tz/tz-how-to.html
__construct(array $params = array())
Constructor.
array | $params | List of optional class parameters. Possible options:
|
getZone(string $zone) : \Horde_Timezone_Zone
Returns an object representing an invidual timezone.
Maps to a "Zone" entry in the timezone database. Works with zone aliases and other common timezone names too.
string | $zone | A timezone name. |
A timezone object.
getRule(string $rule) : \Horde_Timezone_Rule
Returns an object representing a set of named transition rules.
Maps to a list Rule entries of the same name in the timezone database.
string | $rule | A rule name. |
A rule object.