Const
Singleton class to contain timezones. Right now it is all manual registry in the future we may use this class to download timezone information or handle loading pre-expanded timezones.
Returns a timezone by its tzid if present.
Timezone identifier (e.g. America/Los_Angeles)
The timezone, or null if not found
Checks if timezone id has been registered.
False, when not present
Registers a timezone object or component.
The name of the timezone. Defaults to the component's TZID if not passed.
Optional
The initialized zone or vtimezone.
Register timezone definitions.
import { TimezoneService } from 'ical';import tzdata from 'ical/timezones.json';TimezoneService.registerTimezones(tzdata); Copy
import { TimezoneService } from 'ical';import tzdata from 'ical/timezones.json';TimezoneService.registerTimezones(tzdata);
Removes a timezone by its tzid from the list.
module:ICAL.TimezoneService
ICAL.TimezoneService
Generated using TypeDoc
Singleton class to contain timezones. Right now it is all manual registry in the future we may use this class to download timezone information or handle loading pre-expanded timezones.