icalzone
Version:
iCalzone is a light-weight VTIMEZONE provider
21 lines (20 loc) • 1.03 kB
TypeScript
/**
* Tries to resolve a given time zone to iCalendar time zone component
* (`VTIMEZONE`) as string array (usually for further processing).
* @param zoneName Time zone name (e.g. `America/Los_Angeles`)
* @param includeWrapper Set to `false` to avoid including lines for
* `BEGIN:VTIMEZONE` and `END:VTIMEZONE`.
* @returns Lines of the iCalendar time zone component (`VTIMEZONE`), each line
* individually as an array of strings.
*/
export declare function getZoneLines(zoneName: string, includeWrapper?: boolean): string[] | undefined;
/**
* Tries to resolve a given time zone to iCalendar time zone component
* (`VTIMEZONE`) as string.
* @param zoneName Time zone name (e.g. `America/Los_Angeles`)
* @param includeWrapper Set to `false` to avoid including lines for
* `BEGIN:VTIMEZONE` and `END:VTIMEZONE`.
* @returns The iCalendar time zone component (`VTIMEZONE`) as string
* with `\r\n` line breaks.
*/
export declare function getZoneString(zoneName: string, includeWrapper?: boolean): string | undefined;