- Source
Methods
(static) get(tzid) → (nullable) {ICAL.Timezone}
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 null if not found
- Type:
- ICAL.
Timezone
(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(nameopt, zone)
Registers a timezone object or component.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
name | String | <optional> | The name of the timezone. Defaults to the component's TZID if not passed. |
zone | ICAL. | The initialized zone or vtimezone. |
- 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