Methods

(static) get(tzid) → {ICAL.Timezone|undefined}

Returns a timezone by its tzid if present.

Parameters:
NameTypeDescription
tzidString

Timezone identifier (e.g. America/Los_Angeles)

Returns:

The timezone, or undefined if not found

Type: 
ICAL.Timezone | undefined

(static) has(tzid) → {Boolean}

Checks if timezone id has been registered.

Parameters:
NameTypeDescription
tzidString

Timezone identifier (e.g. America/Los_Angeles)

Returns:

False, when not present

Type: 
Boolean

(static) register(timezone, nameopt)

Registers a timezone object or component.

Parameters:
NameTypeAttributesDescription
timezoneICAL.Component | ICAL.Timezone

The initialized zone or vtimezone.

nameString<optional>

The name of the timezone. Defaults to the component's TZID if not passed.

(static) remove(tzid) → (nullable) {ICAL.Timezone}

Removes a timezone by its tzid from the list.

Parameters:
NameTypeDescription
tzidString

Timezone identifier (e.g. America/Los_Angeles)

Returns:

The removed timezone, or null if not registered

Type: 
ICAL.Timezone