UNPKG

638 BTypeScriptView Raw
1type TimeZoneName = string;
2
3interface RawTimeZone {
4 name: TimeZoneName;
5 alternativeName: string;
6 group: string[];
7 continentCode: string;
8 continentName: string;
9 countryName: string;
10 countryCode: string;
11 mainCities: string[];
12 rawOffsetInMinutes: number;
13 abbreviation: string;
14 rawFormat: string;
15}
16
17interface TimeZone extends RawTimeZone {
18 currentTimeOffsetInMinutes: number;
19 currentTimeFormat: string;
20}
21
22interface TimeZoneOptions {
23 includeUtc?: boolean;
24}
25
26export const rawTimeZones: RawTimeZone[];
27export const timeZonesNames: TimeZoneName[];
28export function getTimeZones(opts?: TimeZoneOptions): TimeZone[];