- Source
Methods
(static) get(tzid) → {ICAL.Timezone|undefined}
Returns a timezone by its tzid if present.
Parameters:
Name | Type | Description |
---|---|---|
tzid | String | Timezone identifier (e.g. America/Los_Angeles) |
- Source
Returns:
The timezone, or undefined if not found
- Type:
- ICAL.
Timezone |undefined
(static) has(tzid) → {Boolean}
Checks if timezone id has been registered.
Parameters:
Name | Type | Description |
---|---|---|
tzid | String | Timezone identifier (e.g. America/Los_Angeles) |
- Source
Returns:
False, when not present
- Type:
- Boolean
(static) register(timezone, nameopt)
Registers a timezone object or component.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
timezone | ICAL. | The initialized zone or vtimezone. | |
name | String | <optional> | The name of the timezone. Defaults to the component's TZID if not passed. |
- Source
(static) remove(tzid) → (nullable) {ICAL.Timezone}
Removes a timezone by its tzid from the list.
Parameters:
Name | Type | Description |
---|---|---|
tzid | String | Timezone identifier (e.g. America/Los_Angeles) |
- Source
Returns:
The removed timezone, or null if not registered
- Type:
- ICAL.
Timezone