1 | type TimeZoneName = string;
|
2 |
|
3 | interface 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 |
|
17 | interface TimeZone extends RawTimeZone {
|
18 | currentTimeOffsetInMinutes: number;
|
19 | currentTimeFormat: string;
|
20 | }
|
21 |
|
22 | interface TimeZoneOptions {
|
23 | includeUtc?: boolean;
|
24 | }
|
25 |
|
26 | export const rawTimeZones: RawTimeZone[];
|
27 | export const timeZonesNames: TimeZoneName[];
|
28 | export function getTimeZones(opts?: TimeZoneOptions): TimeZone[];
|