Documentation

Horde_Timezone_Zone
in package

Class representing a set of "Rule" timezone database entries of the same name.

Tags
author

Jan Schneider jan@horde.org

Table of Contents

$_info  : array<string|int, mixed>
Zone lines of this zone object.
$_name  : string
The timezone ID.
$_tz  : mixed
A Horde_Timezone object.
__construct()  : mixed
Constructor.
add()  : mixed
Adds a Zone line to this zone object.
setTzid()  : mixed
Sets the timezone ID.
toVtimezone()  : Horde_Icalendar_Vtimezone
Exports this zone to a VTIMEZONE component.
_getDate()  : Horde_Date
Calculates a date from the date columns of a Zone line.
_getOffset()  : array<string|int, mixed>
Calculates an offset from the offset column of a Zone line.

Properties

$_info

Zone lines of this zone object.

protected array<string|int, mixed> $_info = array()

$_name

The timezone ID.

protected string $_name

$_tz

A Horde_Timezone object.

protected mixed $_tz
Tags
va

Horde_Timezone

Methods

__construct()

Constructor.

public __construct(string $name, Horde_Timezone $tz) : mixed
Parameters
$name : string

A timezone ID.

$tz : Horde_Timezone

A Horde_Timezone object. Used to retrieve rules for this timezone.

Return values
mixed

add()

Adds a Zone line to this zone object.

public add(array<string|int, mixed> $info) : mixed
Parameters
$info : array<string|int, mixed>

A parsed Zone line or continuation line.

Return values
mixed

setTzid()

Sets the timezone ID.

public setTzid(string $name) : mixed

There are aliases for timezone IDs, it might be necessary to use one of those.

Parameters
$name : string

A timezone ID.

Return values
mixed

toVtimezone()

Exports this zone to a VTIMEZONE component.

public toVtimezone([Horde_Date $from = null ][, Horde_Date $to = null ]) : Horde_Icalendar_Vtimezone
Parameters
$from : Horde_Date = null

The earliest date that we need timezone definitions for.

$to : Horde_Date = null

The latest date.

Tags
throws
Horde_Timezone_Exception
Return values
Horde_Icalendar_Vtimezone

A VTIMEZONE component representing this timezone.

_getDate()

Calculates a date from the date columns of a Zone line.

protected _getDate(int $line) : Horde_Date
Parameters
$line : int

A line number.

Return values
Horde_Date

The date of this line.

_getOffset()

Calculates an offset from the offset column of a Zone line.

protected _getOffset(int $line) : array<string|int, mixed>
Parameters
$line : int

A line number.

Return values
array<string|int, mixed>

A hash describing the offset.

Search results