generated from vvo/javascript-library-template
-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
index.d.ts
28 lines (24 loc) · 638 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
type TimeZoneName = string;
interface RawTimeZone {
name: TimeZoneName;
alternativeName: string;
group: string[];
continentCode: string;
continentName: string;
countryName: string;
countryCode: string;
mainCities: string[];
rawOffsetInMinutes: number;
abbreviation: string;
rawFormat: string;
}
interface TimeZone extends RawTimeZone {
currentTimeOffsetInMinutes: number;
currentTimeFormat: string;
}
interface TimeZoneOptions {
includeUtc?: boolean;
}
export const rawTimeZones: RawTimeZone[];
export const timeZonesNames: TimeZoneName[];
export function getTimeZones(opts?: TimeZoneOptions): TimeZone[];