diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index c52fb97..786b7c7 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -6,6 +6,7 @@ on: - master paths: - 'docs/**' + - 'public/**' - 'astro.config.mjs' - '.github/workflows/deploy-docs.yml' workflow_dispatch: diff --git a/docs/api/addYears.md b/docs/api/addYears.md index 78665e3..d0e87b4 100644 --- a/docs/api/addYears.md +++ b/docs/api/addYears.md @@ -50,7 +50,7 @@ const nyDate = new Date('2024-03-10T05:00:00Z'); // March 10, 2024 05:00 UTC (DS // Add years in New York timezone const futureNY = addYears(nyDate, 1, 'America/New_York'); -console.log(futureNY); // March 10, 2025 04:00 UTC (EST, DST adjusted) +console.log(futureNY); // March 10, 2025 04:00 UTC (EDT, DST adjusted) // UTC calculation for comparison const futureUTC = addYears(nyDate, 1, 'UTC'); diff --git a/docs/api/compile.md b/docs/api/compile.md index 2d76cff..a642f29 100644 --- a/docs/api/compile.md +++ b/docs/api/compile.md @@ -18,7 +18,7 @@ compile(formatString) ### Returns -`CompiledObject` - A compiled format object that can be reused with `format()` and `parse()` +`CompiledObject` - A compiled format object that can be reused with `format()`, `parse()`, `preparse()`, `isValid()`, and `transform()` ## Basic Usage diff --git a/docs/api/format.md b/docs/api/format.md index b330bd9..7fb2fcb 100644 --- a/docs/api/format.md +++ b/docs/api/format.md @@ -78,8 +78,8 @@ format(now, 'hh:mm A [GMT]Z'); | `ss` | Seconds | 05, 10 | | `s` | Seconds without zero padding | 5, 10 | | `SSS` | 3-digit milliseconds | 753, 022 | -| `SS` | 2-digit milliseconds | 75, 02 | -| `S` | 1-digit milliseconds | 7, 0 | +| `SS` | First 2 digits of milliseconds (truncated) | 75, 02 | +| `S` | First digit of milliseconds (truncated) | 7, 0 | ### AM/PM Tokens @@ -173,8 +173,8 @@ const date = new Date(); format(date, 'YYYY-MM-DD HH:mm:ss [JST]', { timeZone: 'Asia/Tokyo' }); // => 2025-08-23 23:30:45 JST -format(date, 'YYYY-MM-DD HH:mm:ss [EST]', { timeZone: 'America/New_York' }); -// => 2025-08-23 09:30:45 EST +format(date, 'YYYY-MM-DD HH:mm:ss [EDT]', { timeZone: 'America/New_York' }); +// => 2025-08-23 10:30:45 EDT format(date, 'YYYY-MM-DD HH:mm:ss [UTC]', { timeZone: 'UTC' }); // => 2025-08-23 14:30:45 UTC diff --git a/docs/api/index.md b/docs/api/index.md index 7332c77..69f77a1 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -21,13 +21,13 @@ Welcome to the comprehensive API reference for date-and-time v4.x. This section | Function | Description | |--------------------------------------------------------|--------------------------------------------------| -| [`addYears()`](./add-functions#addyears) | Add/subtract years from dates | -| [`addMonths()`](./add-functions#addmonths) | Add/subtract months from dates | -| [`addDays()`](./add-functions#adddays) | Add/subtract days from dates | -| [`addHours()`](./add-functions#addhours) | Add/subtract hours from dates | -| [`addMinutes()`](./add-functions#addminutes) | Add/subtract minutes from dates | -| [`addSeconds()`](./add-functions#addseconds) | Add/subtract seconds from dates | -| [`addMilliseconds()`](./add-functions#addmilliseconds) | Add/subtract milliseconds from dates | +| [`addYears()`](./addyears) | Add/subtract years from dates | +| [`addMonths()`](./addmonths) | Add/subtract months from dates | +| [`addDays()`](./adddays) | Add/subtract days from dates | +| [`addHours()`](./addhours) | Add/subtract hours from dates | +| [`addMinutes()`](./addminutes) | Add/subtract minutes from dates | +| [`addSeconds()`](./addseconds) | Add/subtract seconds from dates | +| [`addMilliseconds()`](./addmilliseconds) | Add/subtract milliseconds from dates | | [`subtract()`](./subtract) | Calculate time differences with Duration objects | ### Utility Functions @@ -137,7 +137,9 @@ if (isNaN(result.getTime())) { ### Type Safety ```typescript -import { format, FormatterOptions } from 'date-and-time'; +import { format } from 'date-and-time'; + +type FormatterOptions = NonNullable[2]>; // TypeScript will catch type errors const options: FormatterOptions = { diff --git a/docs/api/isValid.md b/docs/api/isValid.md index 2d4ce4a..c3dde6f 100644 --- a/docs/api/isValid.md +++ b/docs/api/isValid.md @@ -45,6 +45,8 @@ isValid('2025-08-23', 'MM/DD/YYYY'); // => false (wrong format) isValid('08/23/2025', 'YYYY-MM-DD'); // => false (wrong format) ``` +A format string must contain at least one token: a format string made only of literal text, such as `'[today]'`, never validates. When the `timeZone` option names a timezone the JavaScript runtime does not recognize, `isValid()` returns `false` unless the input contains an offset, matching the `Invalid Date` that [`parse()`](./parse) returns. + ## Validation with Options ### Locale Validation diff --git a/docs/api/parse.md b/docs/api/parse.md index 4b0bd4c..98536f5 100644 --- a/docs/api/parse.md +++ b/docs/api/parse.md @@ -77,8 +77,8 @@ parse('2025-08-23 14:30:45', 'YYYY-MM-DD HH:mm:ss'); | `ss` | Seconds | 05, 10 | | `s` | Seconds without zero padding | 5, 10 | | `SSS` | 3-digit milliseconds | 753, 022 | -| `SS` | 2-digit milliseconds | 75, 02 | -| `S` | 1-digit milliseconds | 7, 0 | +| `SS` | Hundredths of a second (75 is 750 ms) | 75, 02 | +| `S` | Tenths of a second (7 is 700 ms) | 7, 0 | ### AM/PM Tokens @@ -167,6 +167,8 @@ Interprets the parsed date in the specified timezone. **Note**: If the input string contains a timezone offset (e.g., `Z` or `ZZ` tokens), that offset takes precedence and the `timeZone` option is ignored. +**Note**: A timezone name that the JavaScript runtime does not recognize makes `parse()` return `Invalid Date`, and `isValid()` return `false`, unless the input contains an offset. + ```typescript import { parse } from 'date-and-time'; @@ -202,11 +204,11 @@ import beng from 'date-and-time/numerals/beng'; // Arabic-Indic numerals parse('٠٨/٠٧/٢٠٢٥', 'DD/MM/YYYY', { numeral: arab }); -// => Fri Aug 08 2025 00:00:00 GMT-0700 +// => Tue Jul 08 2025 00:00:00 GMT-0700 // Bengali numerals parse('০৮/০৭/২০২৫', 'DD/MM/YYYY', { numeral: beng }); -// => Fri Aug 08 2025 00:00:00 GMT-0700 +// => Tue Jul 08 2025 00:00:00 GMT-0700 ``` **Available numeral systems:** @@ -257,6 +259,8 @@ parse('0:30 AM', 'h:mm A', { hour12: 'h11' }); // => Thu Jan 01 1970 00:30:00 GMT-0800 ``` +An hour outside the selected range fails: `h12` rejects `0`, and `h11` rejects `12`. + ### hour24 **Type**: `"h23" | "h24"` @@ -271,11 +275,13 @@ import { parse } from 'date-and-time'; parse('0:30', 'H:mm', { hour24: 'h23' }); // => Thu Jan 01 1970 00:30:00 GMT-0800 -// h24 format - midnight is 24 (of previous day) +// h24 format - midnight is 24, read as 00 of the same date parse('24:30', 'H:mm', { hour24: 'h24' }); // => Thu Jan 01 1970 00:30:00 GMT-0800 ``` +An hour outside the selected range fails: `h23` rejects `24`, and `h24` rejects `0`. + ### ignoreCase **Type**: `boolean` @@ -295,6 +301,8 @@ parse('AUGUST 23, 2025', 'MMMM D, YYYY', { ignoreCase: true }); // => Sat Aug 23 2025 00:00:00 GMT-0700 ``` +`ignoreCase` compares names using the locale's own case rules. In Greek, where capital letters drop the accent, `ΑΥΓΟΥΣΤΟΣ` matches `Αύγουστος`. Accents that a language keeps in capitals must still match: with the French locale, `AOÛT` matches `août`, but `AOUT` does not. + ### defaultDate **Type**: `ParsedComponents` @@ -473,6 +481,30 @@ parse('11:30:45 PM', 'h:mm:ss A'); // => Thu Jan 01 1970 23:30:45 GMT-0800 ``` +When the input contains a 24-hour value (`H` or `HH`), it is used and `h`, `hh`, and the meridiem are ignored. A meridiem without an hour reads as 0 (AM) or 12 (PM): + +```typescript +parse('05 PM', 'HH A'); +// => Thu Jan 01 1970 05:00:00 GMT-0800 + +parse('PM', 'A'); +// => Thu Jan 01 1970 12:00:00 GMT-0800 +``` + +### Fractional Seconds + +`SSS` reads one to three digits as milliseconds. `SS` and `S` read a fraction of a second, so their digits are scaled: `SS` reads one or two digits as hundredths, and `S` reads exactly one digit as tenths. + +```typescript +parse('12', 'SSS').getMilliseconds(); // => 12 +parse('12', 'SS').getMilliseconds(); // => 120 +parse('1', 'S').getMilliseconds(); // => 100 +``` + +### Timezone Offset Range + +`Z` reads an offset written as `+HHmm`, and `ZZ` reads one written as `+HH:mm`. The offset must be between `-15:56` and `+15:13`, the extremes found in the IANA timezone history; an offset outside this range fails. + ## Advanced Usage ### Comments in Format Strings @@ -481,8 +513,9 @@ Parts of the format string enclosed in square brackets are treated as literal te ```typescript import { parse } from 'date-and-time'; +import { parser as day_of_week } from 'date-and-time/plugins/day-of-week'; -parse('Today is Saturday, August 23, 2025', '[Today is] dddd, MMMM D, YYYY'); +parse('Today is Saturday, August 23, 2025', '[Today is] dddd, MMMM D, YYYY', { plugins: [day_of_week] }); // => Sat Aug 23 2025 00:00:00 GMT-0700 parse('2025-08-23T14:30:45Z', 'YYYY-MM-DD[T]HH:mm:ss[Z]'); @@ -498,7 +531,7 @@ parse('[2025-08-23 14:30:45]', '\\[YYYY-MM-DD HH:mm:ss\\]'); ### Wildcard Parsing -Whitespace in the format string acts as a wildcard token, allowing you to skip corresponding parts of the input string. The character count must match between the format string and input string. +Each space in the format string is a wildcard that matches any one character of the input, so a format string with spaces also accepts other separators in those positions (`'YYYY-MM-DD HH:mm'` accepts `2025-08-23T14:30`). To skip part of the input, use one space per character to skip. ```typescript import { parse } from 'date-and-time'; @@ -508,7 +541,7 @@ parse('2025/08/23 14:30:45', 'YYYY/MM/DD'); // => Invalid Date // Use whitespace as wildcard (9 spaces to match ' 14:30:45') -parse('2025/08/23 14:30:45', 'YYYY/MM/DD '); +parse('2025/08/23 14:30:45', 'YYYY/MM/DD '); // => Sat Aug 23 2025 00:00:00 GMT-0700 ``` @@ -537,11 +570,13 @@ parse('2025/08', 'YYYY/MM/DD...'); ```typescript import { parse } from 'date-and-time'; import fr from 'date-and-time/locales/fr'; +import { parser as day_of_week } from 'date-and-time/plugins/day-of-week'; // French with timezone parse('samedi, 23 août 2025 à 14:30:45', 'dddd, D MMMM YYYY [à] HH:mm:ss', { locale: fr, - timeZone: 'Europe/Paris' + timeZone: 'Europe/Paris', + plugins: [day_of_week] }); // => Sat Aug 23 2025 14:30:45 GMT+0200 ``` diff --git a/docs/api/preparse.md b/docs/api/preparse.md index 674da80..eac0d32 100644 --- a/docs/api/preparse.md +++ b/docs/api/preparse.md @@ -20,10 +20,10 @@ preparse(dateString, formatString[, options]) ### Returns -`ParseResult` - Object containing parsed date components +`PreparseResult` - Object containing parsed date components ```typescript -interface ParseResult { +interface PreparseResult { Y?: number // Year M?: number // Month (1-12) D?: number // Day @@ -33,8 +33,6 @@ interface ParseResult { m?: number // Minutes (0-59) s?: number // Seconds (0-59) S?: number // Milliseconds (0-999) - SS?: number // 2-digit milliseconds (0-99) - SSS?: number // 3-digit milliseconds (0-999) Z?: number // Timezone offset in minutes _index?: number // Current parsing position _length?: number // Total length of input string @@ -53,6 +51,9 @@ import { preparse } from 'date-and-time'; const result = preparse('2025-08-23 14:30:45', 'YYYY-MM-DD HH:mm:ss'); console.log(result); // { +// _index: 19, +// _length: 19, +// _match: 6, // Y: 2025, // M: 8, // D: 23, @@ -68,13 +69,16 @@ console.log(result); const result = preparse('2025-08-23 2:30:45 PM', 'YYYY-MM-DD h:mm:ss A'); console.log(result); // { +// _index: 21, +// _length: 21, +// _match: 7, // Y: 2025, // M: 8, // D: 23, -// A: 1, // PM // h: 2, // m: 30, -// s: 45 +// s: 45, +// A: 1 // PM // } ``` @@ -87,6 +91,9 @@ import ja from 'date-and-time/locales/ja'; const result = preparse('2025年8月23日', 'YYYY年M月D日', { locale: ja }); console.log(result); // { +// _index: 10, +// _length: 10, +// _match: 3, // Y: 2025, // M: 8, // D: 23 diff --git a/docs/api/subtract.md b/docs/api/subtract.md index 19dc9be..a2d9606 100644 --- a/docs/api/subtract.md +++ b/docs/api/subtract.md @@ -19,7 +19,7 @@ subtract(date1, date2) ### Returns -`Duration` - Rich duration object containing the time difference with properties for years, months, days, hours, minutes, seconds, and milliseconds +`Duration` - Object holding the time difference, which `toDays()`, `toHours()`, `toMinutes()`, `toSeconds()`, `toMilliseconds()`, `toMicroseconds()`, and `toNanoseconds()` express in the unit you need ## Basic Examples @@ -124,6 +124,31 @@ console.log(duration.toMinutes().value); // 120 console.log(duration.toHours().format('H[h] m[m]')); // "2h 0m" ``` +### Format Tokens + +`format()` on a duration accepts these tokens. Repeating a token's letter zero-pads the value to that many digits (`HH` prints `01`). A token for a unit larger than the one you converted to is printed as is, because that unit is not part of the result. + +| Token | Unit | +|-------|--------------| +| `D` | Days | +| `H` | Hours | +| `m` | Minutes | +| `s` | Seconds | +| `S` | Milliseconds | +| `f` | Microseconds | +| `F` | Nanoseconds | + +```typescript +import { Duration } from 'date-and-time'; + +new Duration(90061001.123456).toDays().format('D[d] HH:mm:ss.SSS fff FFF'); +// => "1d 01:01:01.001 123 456" + +// toHours() has no days, so D is printed as is +new Duration(90061001).toHours().format('D H'); +// => "D 25" +``` + ### Advanced Duration Formatting ```typescript @@ -200,8 +225,12 @@ console.log(duration.toDays().value); // -0.09375 (negative but less than 1 da const parts = duration.toDays().toParts(); console.log(parts); // { days: 0, hours: -2, minutes: -15, seconds: 0, ... } -// format() places a single negative sign at the beginning, potentially creating "-0" +// format() puts the negative sign on the largest unit only, which can print "-0" console.log(duration.toDays().format('D[day], H:mm:ss')); // "-0day, 2:15:00" + +// Without that unit's token, the sign is not printed at all +console.log(duration.toDays().format('H:mm:ss')); // "2:15:00" +console.log(duration.toHours().format('H:mm:ss')); // "-2:15:00" ``` ### Sub-millisecond Precision diff --git a/docs/api/transform.md b/docs/api/transform.md index 226c9b4..be17ee8 100644 --- a/docs/api/transform.md +++ b/docs/api/transform.md @@ -56,15 +56,17 @@ console.log(time24); // '14:30:45' ```typescript import es from 'date-and-time/locales/es'; +import { parser as day_of_week } from 'date-and-time/plugins/day-of-week'; // Transform Spanish to English UTC const localized = transform( - 'viernes, 23 ago 2025 14:30:45 GMT+0200', + 'sábado, 23 ago 2025 14:30:45 GMT+0200', 'dddd, DD MMM YYYY HH:mm:ss [GMT]Z', 'ddd, DD MMM YYYY HH:mm:ss [GMT]', - { locale: es } + { locale: es, plugins: [day_of_week] }, + { timeZone: 'UTC' } ); -console.log(localized); // 'Fri, 23 Aug 2025 12:30:45 GMT' +console.log(localized); // 'Sat, 23 Aug 2025 12:30:45 GMT' ``` ### Using Compiled Patterns @@ -141,11 +143,11 @@ The `transform()` function is a convenience wrapper that internally: ```typescript // transform() is equivalent to: -const date = parse(dateString, sourceFormat); -const result = format(date, targetFormat); +const date = parse(dateString, sourceFormat, parserOptions); +const result = format(date, targetFormat, formatterOptions); // But provides a cleaner API: -const result = transform(dateString, sourceFormat, targetFormat); +const result = transform(dateString, sourceFormat, targetFormat, parserOptions, formatterOptions); ``` ## See Also diff --git a/docs/api/utils/getDaysInMonth.md b/docs/api/utils/getDaysInMonth.md index 0b729cb..05be524 100644 --- a/docs/api/utils/getDaysInMonth.md +++ b/docs/api/utils/getDaysInMonth.md @@ -2,7 +2,7 @@ title: getDaysInMonth() --- -Returns the number of days in a given month of a specific year. Correctly handles leap years when calculating February. +Returns the number of days in a given month of a specific year. Correctly handles leap years when calculating February. When given a Date, its year and month are read in the local timezone. ## Syntax diff --git a/docs/api/utils/getISOWeek.md b/docs/api/utils/getISOWeek.md index 6d32efa..c62dc31 100644 --- a/docs/api/utils/getISOWeek.md +++ b/docs/api/utils/getISOWeek.md @@ -2,7 +2,7 @@ title: getISOWeek() --- -Returns the ISO 8601 week number (1–53) for a given date. ISO weeks start on Monday, and week 1 is the week containing the first Thursday of the year. +Returns the ISO 8601 week number (1–53) for a given date. ISO weeks start on Monday, and week 1 is the week containing the first Thursday of the year. When given a Date, its date is read in the local timezone. ## Syntax diff --git a/docs/api/utils/getISOWeekYear.md b/docs/api/utils/getISOWeekYear.md index cf68868..631e065 100644 --- a/docs/api/utils/getISOWeekYear.md +++ b/docs/api/utils/getISOWeekYear.md @@ -2,7 +2,7 @@ title: getISOWeekYear() --- -Returns the ISO 8601 week year for a given date. The ISO week year may differ from the calendar year near the start and end of the year, because ISO weeks always start on Monday and the first week of the year is the one containing the first Thursday of the year. +Returns the ISO 8601 week year for a given date. The ISO week year may differ from the calendar year near the start and end of the year, because ISO weeks always start on Monday and the first week of the year is the one containing the first Thursday of the year. When given a Date, its date is read in the local timezone. ## Syntax diff --git a/docs/api/utils/isSameDay.md b/docs/api/utils/isSameDay.md index 56835a8..e7e2ebc 100644 --- a/docs/api/utils/isSameDay.md +++ b/docs/api/utils/isSameDay.md @@ -2,7 +2,7 @@ title: isSameDay() --- -Checks if two Date objects represent the same calendar day, regardless of time. +Checks if two Date objects represent the same calendar day, regardless of time. Both dates are read in the local timezone. ## Syntax diff --git a/docs/guide/index.md b/docs/guide/index.md index 10906c4..abc9084 100644 --- a/docs/guide/index.md +++ b/docs/guide/index.md @@ -17,7 +17,7 @@ title: Introduction - Support for **40+ locales** with native month/day names - Multiple **calendar systems** (Gregorian, Buddhist) -- **Numeral systems** (Latin, Arabic, Bengali, Myanmar) +- **Numeral systems** (Latin, Arabic-Indic, Extended Arabic-Indic, Bengali, Myanmar) - **Timezone-aware** formatting and parsing ### 🎯 Developer Experience @@ -61,7 +61,7 @@ title: Introduction ### Advanced Features -- **Timezone Support** - Comprehensive timezone data from timezonedb +- **Timezone Support** - IANA timezone names, resolved with the timezone data built into the JavaScript runtime - **Locale Support** - 40+ languages with native formatting - **Plugin System** - Extend formatters and parsers - **Duration Objects** - Rich time difference calculations diff --git a/docs/guide/quick-start.md b/docs/guide/quick-start.md index cb593f6..8bdd2b4 100644 --- a/docs/guide/quick-start.md +++ b/docs/guide/quick-start.md @@ -89,8 +89,8 @@ import { format, parse } from 'date-and-time'; const date = new Date(); // Format in a specific timezone -format(date, 'YYYY-MM-DD HH:mm:ss [EST]', { timeZone: 'America/New_York' }); -// => 2025-08-23 09:30:45 EST +format(date, 'YYYY-MM-DD HH:mm:ss [EDT]', { timeZone: 'America/New_York' }); +// => 2025-08-23 10:30:45 EDT // UTC formatting format(date, 'YYYY-MM-DD HH:mm:ss [UTC]', { timeZone: 'UTC' }); diff --git a/docs/index.mdx b/docs/index.mdx index 17b4574..33c9217 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -31,10 +31,10 @@ import { Card, CardGrid, Tabs, TabItem } from '@astrojs/starlight/components'; Written in TypeScript with ES2021 target. Tree-shakable modules for optimal bundle size. - Support for 40+ locales and multiple calendar systems. Arabic, Bengali, Myanmar numerals. + Support for 40+ locales and multiple calendar systems. Arabic-Indic, Extended Arabic-Indic, Bengali, and Myanmar numerals. - Complete timezone handling with IANA timezone database built-in. + Timezone handling by IANA timezone name, using the timezone data built into the JavaScript runtime. Full TypeScript support with comprehensive type definitions and IntelliSense. @@ -61,11 +61,11 @@ format(now, 'YYYY/MM/DD HH:mm:ss'); // Localized formatting format(now, 'YYYY年M月D日(ddd)', { locale: ja }); -// => 2025年8月23日(金) +// => 2025年8月23日(土) // Timezone-aware formatting -format(now, 'YYYY-MM-DD HH:mm:ss [EST]', { timeZone: 'America/New_York' }); -// => 2025-08-23 09:30:45 EST +format(now, 'YYYY-MM-DD HH:mm:ss [EDT]', { timeZone: 'America/New_York' }); +// => 2025-08-23 10:30:45 EDT // Parsing const date = parse('2025/08/23 14:30:45', 'YYYY/MM/DD HH:mm:ss'); diff --git a/docs/locales.md b/docs/locales.md index 65f52a3..f68d7be 100644 --- a/docs/locales.md +++ b/docs/locales.md @@ -17,6 +17,24 @@ format(date, 'ddd, D MMM', { locale: es }); // => sáb, 23 ago ``` +## Context-Dependent Month Names + +Some languages use a different form of the month name after a day number. These locales switch to that form when the format string contains a day token (`D` or `DD`), in both `format()` and `parse()`: + +- `cs`, `fi`, `ru` - both `MMMM` and `MMM` +- `el`, `pl`, `uk` - `MMMM` only + +```typescript +import { format } from 'date-and-time'; +import ru from 'date-and-time/locales/ru'; + +format(new Date(2025, 2, 8), 'D MMMM YYYY', { locale: ru }); +// => 8 марта 2025 + +format(new Date(2025, 2, 8), 'MMMM YYYY', { locale: ru }); +// => март 2025 +``` + ## Supported Locales The following 41 locales are available: diff --git a/docs/migration.md b/docs/migration.md index ffc68f4..c4548ce 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -70,8 +70,8 @@ import { format } from 'date-and-time'; const now = new Date(); -format(now, 'YYYY-MM-DD HH:mm:ss [EST]', { timeZone: 'America/New_York' }); -// => 2025-08-23 09:30:45 EST +format(now, 'YYYY-MM-DD HH:mm:ss [EDT]', { timeZone: 'America/New_York' }); +// => 2025-08-23 10:30:45 EDT ``` ### parse @@ -82,7 +82,7 @@ The third argument has been changed from `boolean` to `ParserOptions`. With `Par import { parse } from 'date-and-time'; parse('11:14:05 PM', 'h:mm:ss A', { timeZone: 'UTC' }); -// => Jan 02 1970 23:14:05 GMT+0000 +// => Jan 01 1970 23:14:05 GMT+0000 ``` Additionally, since the `timezone` plugin has been integrated into the main library, the `parseTZ` function is now obsolete. Pass an IANA timezone name string directly to the `timeZone` option: @@ -112,12 +112,12 @@ parse('2025-08', 'YYYY-MM'); ### preparse -The third argument has been changed from `boolean` to `ParserOptions`. With `ParserOptions`, you can now specify timezone and locale settings. If you previously set the third argument to `true` to parse input in UTC timezone, you can achieve the same output as follows: +The third argument has been changed from `boolean` to `ParserOptions`. With `ParserOptions`, you can now specify locale and other parsing settings. The result does not depend on the timezone, because `preparse()` returns the values as read, so the `true` you previously passed for UTC input can simply be dropped: ```typescript import { preparse } from 'date-and-time'; -preparse('11:14:05 PM', 'h:mm:ss A', { timeZone: 'UTC' }); +preparse('11:14:05 PM', 'h:mm:ss A'); { A: 1, @@ -172,7 +172,7 @@ transform( ### addYears -The third argument has been changed from `boolean` to `TimeZone | UTC`. If you previously set the third argument to `true` to calculate in UTC timezone, you can achieve the same output as follows: +The third argument has been changed from `boolean` to `TimeZone | string`. If you previously set the third argument to `true` to calculate in UTC timezone, you can achieve the same output as follows: ```typescript import { addYears } from 'date-and-time'; diff --git a/docs/plugins.md b/docs/plugins.md index 8517cde..4e30075 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -2,7 +2,7 @@ title: Plugins --- -`date-and-time` adopts a plugin system. Special tokens used relatively infrequently are provided as plugins outside the main library. By adding plugins as needed, you can use those tokens in `Formatter` and `Parser`. Here, `Formatter` refers to the output engine used by the `format` function, and `Parser` refers to the parsing engine used by the `parse`, `preparse`, and `isValid` functions. These engines are extended by adding plugins as arguments to these functions. +`date-and-time` adopts a plugin system. Special tokens used relatively infrequently are provided as plugins outside the main library. By adding plugins as needed, you can use those tokens in `Formatter` and `Parser`. Here, `Formatter` refers to the output engine used by the `format` function, and `Parser` refers to the parsing engine used by the `parse`, `preparse`, and `isValid` functions. These engines are extended by adding plugins as arguments to these functions. The `transform` function uses both: pass `Parser` plugins in its parser options and `Formatter` plugins in its formatter options. ## Installation @@ -90,9 +90,10 @@ import { parse } from 'date-and-time'; import { parser as day_of_week } from 'date-and-time/plugins/day-of-week'; parse( - 'Thursday, March 05, 2020', 'dddd, MMMM, D YYYY', + 'Thursday, March 05, 2020', 'dddd, MMMM DD, YYYY', { plugins: [day_of_week] } ); +// => Thu Mar 05 2020 00:00:00 GMT-0800 ``` ## microsecond @@ -182,6 +183,8 @@ import { parser as ordinal } from 'date-and-time/plugins/ordinal'; parse('Jan 1st 2019', 'MMM DDD YYYY', { plugins: [ordinal] }); ``` +The parser does not check that the suffix matches the day: `1th` is also read as 1. + ## quarter This plugin adds a token to the `Formatter` for outputting the quarter of the year. @@ -230,6 +233,8 @@ This plugin adds tokens to the `Parser` for reading 2-digit years. This token id - Values of 70 or above are interpreted as 1900s - Values of 69 or below are interpreted as 2000s +With `calendar: 'buddhist'`, values of 13 or above are interpreted as 2513-2599 and values of 12 or below as 2600-2612, which covers Gregorian years 1970-2069. + ### Parser | Token | Meaning | Input Examples | @@ -270,7 +275,7 @@ format(new Date(2024, 0, 1), 'GGGG-[W]WW', { plugins: [week] }); // => 2024-W01 // Note: Dec 30, 2024 belongs to ISO week year 2025 -format(new Date(2024, 11, 30), 'YYYY vs GGGG [W]W', { plugins: [week] }); +format(new Date(2024, 11, 30), 'YYYY [vs] GGGG [W]W', { plugins: [week] }); // => 2024 vs 2025 W1 ``` @@ -303,3 +308,5 @@ format( ); // March 14 2021 18:59 JST ``` + +Timezones without an English name, such as `Etc/GMT+5`, output an empty string for both tokens. diff --git a/docs/timezones.md b/docs/timezones.md index afc101f..4e1107f 100644 --- a/docs/timezones.md +++ b/docs/timezones.md @@ -30,10 +30,10 @@ format(date, 'YYYY-MM-DD HH:mm:ss', { timeZone: 'Asia/Tokyo' }); // => 2025-08-23 23:30:45 format(date, 'YYYY-MM-DD HH:mm:ss', { timeZone: 'America/New_York' }); -// => 2025-08-23 09:30:45 +// => 2025-08-23 10:30:45 format(date, 'YYYY-MM-DD HH:mm:ss', { timeZone: 'Europe/London' }); -// => 2025-08-23 14:30:45 +// => 2025-08-23 15:30:45 ``` The string `"UTC"` is treated specially by this library and is processed faster than other timezone strings. While other strings that represent UTC (e.g., `"Etc/UTC"`) are also recognized, using `"UTC"` is always recommended. @@ -73,7 +73,26 @@ format(date, 'YYYY-MM-DD HH:mm:ss', { timeZone: Tokyo }); // => 2025-08-23 23:30:45 format(date, 'YYYY-MM-DD HH:mm:ss', { timeZone: New_York }); -// => 2025-08-23 09:30:45 +// => 2025-08-23 10:30:45 +``` + +## Daylight Saving Time Transitions + +When `parse()` reads a local time in a timezone that observes daylight saving time, two cases need care: + +- A time that occurs twice, when clocks fall back, resolves to the earlier occurrence, which is still daylight saving time. +- A time that does not exist, when clocks spring forward, moves forward by the length of the gap. + +```typescript +import { parse } from 'date-and-time'; + +// 01:30 occurs twice on Nov 2, 2025 in New York; the EDT occurrence is used +parse('2025-11-02 01:30', 'YYYY-MM-DD HH:mm', { timeZone: 'America/New_York' }).toISOString(); +// => 2025-11-02T05:30:00.000Z + +// 02:30 does not exist on Mar 9, 2025 in New York; it is read as 03:30 EDT +parse('2025-03-09 02:30', 'YYYY-MM-DD HH:mm', { timeZone: 'America/New_York' }).toISOString(); +// => 2025-03-09T07:30:00.000Z ``` ## Regions diff --git a/eslint.config.js b/eslint.config.js index 207a393..4d0bb1e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -17,10 +17,6 @@ export default defineConfig( }, languageOptions: { ecmaVersion: 2021, - sourceType: 'module', - globals: { - process: true - }, parserOptions: { projectService: true } diff --git a/package-lock.json b/package-lock.json index afc7477..c73eebb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "@vitest/coverage-v8": "^5.1.2", "astro": "^7.4.13", "eslint": "^10.16.0", - "glob": "^14.0.6", "prettier": "^3.10.1", "rollup": "^4.68.9", "rollup-plugin-dts": "^6.5.1", @@ -5537,24 +5536,6 @@ "dev": true, "license": "ISC" }, - "node_modules/glob": { - "version": "14.0.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-14.0.6.tgz", - "integrity": "sha512-OwXjVP2svY5EyLY75Vek96C8qK43gqrt4xsZ+qSILdnaEiJPXkd62mcfUSNx/TQErQRdu5uM5kF67sfONragKw==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "minimatch": "^11.0.5", - "minipass": "^7.1.3", - "path-scurry": "^3.0.0" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/glob-parent": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", @@ -7095,16 +7076,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/minipass": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", - "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", - "dev": true, - "license": "BlueOak-1.0.0", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", @@ -7447,23 +7418,6 @@ "node": ">=8" } }, - "node_modules/path-scurry": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-3.0.0.tgz", - "integrity": "sha512-1pTbQqH1wIwMi/eleQ5leFTTCkzFsPcgXNjwOA8YGGW/W4/kHT3dssE7Z6NH+zuqNLOzOB0uaD61yl7cAcVhgg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "18 || 20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/pathe": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", diff --git a/package.json b/package.json index 54726bc..a6a9c6f 100644 --- a/package.json +++ b/package.json @@ -86,8 +86,6 @@ } }, "files": [ - "LICENSE", - "README.md", "dist/" ], "scripts": { @@ -103,7 +101,7 @@ "test": "vitest run", "test:coverage": "vitest run --coverage", "timezone": "tsx tools/timezone.ts", - "ts": "tsc --noEmit", + "ts": "tsc", "zonename": "tsx tools/zonename.ts" }, "author": "KNOWLEDGECODE", @@ -131,7 +129,6 @@ "@vitest/coverage-v8": "^5.1.2", "astro": "^7.4.13", "eslint": "^10.16.0", - "glob": "^14.0.6", "prettier": "^3.10.1", "rollup": "^4.68.9", "rollup-plugin-dts": "^6.5.1", diff --git a/rollup.config.ts b/rollup.config.ts index fb31621..0f6e8f4 100644 --- a/rollup.config.ts +++ b/rollup.config.ts @@ -3,12 +3,13 @@ import alias from '@rollup/plugin-alias'; import esbuild from 'rollup-plugin-esbuild'; import terser from '@rollup/plugin-terser'; import { dts } from 'rollup-plugin-dts'; -import { globSync } from 'glob'; +import { globSync } from 'node:fs'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; -const outputDir = (input: string) => input.replace(/^src/g, 'dist').replace(/\/[^/]*$/g, ''); +const outputDir = (input: string) => input.replace(/^src/, 'dist').replace(/\/[^/]*$/, ''); const replacePath = (input: string) => input.replace(/(^src\/|\.ts$)/g, ''); +const entries = (pattern: string) => Object.fromEntries(globSync(pattern).map(input => [replacePath(input), input])); const fixCjsDefaultInterop = (): Plugin => ({ name: 'fix-cjs-default-interop', @@ -43,10 +44,10 @@ const ts = () => { config('src/index.ts', 'dist'), config('src/plugin.ts', 'dist'), config('src/timezone.ts', 'dist'), - config(Object.fromEntries(globSync('src/numerals/**/*.ts').map(input => [replacePath(input), input])), 'dist', defaultExportPlugins), + config(entries('src/numerals/**/*.ts'), 'dist', defaultExportPlugins), globSync('src/locales/**/*.ts').map(input => config(input, outputDir(input), defaultExportPlugins)), globSync('src/plugins/**/*.ts').map(input => config(input, outputDir(input))), - config(Object.fromEntries(globSync('src/timezones/**/*.ts').map(input => [replacePath(input), input])), 'dist', defaultExportPlugins) + config(entries('src/timezones/**/*.ts'), 'dist', defaultExportPlugins) ].flat(); }; @@ -78,14 +79,14 @@ const types = () => { cjsConfig('src/plugin.ts', 'dist'), config('src/timezone.ts', 'dist'), cjsConfig('src/timezone.ts', 'dist'), - config(Object.fromEntries(globSync('src/numerals/**/*.ts').map(input => [replacePath(input), input])), 'dist'), - cjsConfig(Object.fromEntries(globSync('src/numerals/**/*.ts').map(input => [replacePath(input), input])), 'dist'), + config(entries('src/numerals/**/*.ts'), 'dist'), + cjsConfig(entries('src/numerals/**/*.ts'), 'dist'), globSync('src/locales/**/*.ts').map(input => config(input, outputDir(input))), globSync('src/locales/**/*.ts').map(input => cjsConfig(input, outputDir(input))), globSync('src/plugins/**/*.ts').map(input => config(input, outputDir(input))), globSync('src/plugins/**/*.ts').map(input => cjsConfig(input, outputDir(input))), - config(Object.fromEntries(globSync('src/timezones/**/*.ts').map(input => [replacePath(input), input])), 'dist'), - cjsConfig(Object.fromEntries(globSync('src/timezones/**/*.ts').map(input => [replacePath(input), input])), 'dist') + config(entries('src/timezones/**/*.ts'), 'dist'), + cjsConfig(entries('src/timezones/**/*.ts'), 'dist') ].flat(); }; diff --git a/skills/date-and-time/references/options.md b/skills/date-and-time/references/options.md index b04381d..d133e0a 100644 --- a/skills/date-and-time/references/options.md +++ b/skills/date-and-time/references/options.md @@ -31,12 +31,12 @@ interface ParserOptions { | Option | Applies to | Default | Effect | |--------|------------|---------|--------| | `locale` | both | English (built in) | Month names, weekday names, and AM/PM text | -| `timeZone` | both | local timezone | `format` converts the date to this zone first; `parse` reads the input as this zone | +| `timeZone` | both | local timezone | `format` converts the date to this zone first; `parse` reads the input as this zone; a name the runtime does not recognize gives Invalid Date (isValid: false) unless the input has an offset | | `numeral` | both | `latn` | Digit system for output and input | | `calendar` | both | `'gregory'` | `'buddhist'` adds 543 to the year (2025 becomes 2568); `YYYY` then prints up to Buddhist 9999 (Gregorian 9456), and `parse` accepts Buddhist 0544-9999 | | `hour12` | both | `'h12'` | `'h11'` shows the first hour after midnight as `0:30 AM`; `'h12'` as `12:30 AM` | | `hour24` | both | `'h23'` | `'h24'` shows the first hour after midnight as `24:30`; `'h23'` as `0:30` | -| `ignoreCase` | parse | `false` | Case-insensitive month, weekday, and AM/PM names | +| `ignoreCase` | parse | `false` | Case-insensitive month, weekday, and AM/PM names, compared by the locale's case rules (Greek capitals without accents match); accents a language keeps in capitals must still match | | `defaultDate` | parse | `{ Y: 1970, M: 1, D: 1, m: 0, s: 0, S: 0 }` | Values for components the pattern does not read | | `plugins` | both | none | Extra tokens; see [plugins.md](plugins.md) | diff --git a/skills/date-and-time/references/plugins.md b/skills/date-and-time/references/plugins.md index b65cf66..9c6cb21 100644 --- a/skills/date-and-time/references/plugins.md +++ b/skills/date-and-time/references/plugins.md @@ -31,7 +31,7 @@ Bundled plugins: day-of-week microsecond nanosecond ordinal quarter timestamp tw | `ordinal` | `formatter`, `parser` | `DDD` | 1st, 2nd, 3rd | | `quarter` | `formatter` | `Q` | 1-4 | | `timestamp` | `formatter` | `t` `T` | Unix seconds / milliseconds | -| `two-digit-year` | `parser` | `YY` | Reads a 2-digit year | +| `two-digit-year` | `parser` | `YY` | Reads a 2-digit year: 70-99 as 19xx, 00-69 as 20xx (Buddhist: 13-99 as 25xx, 00-12 as 26xx) | | `week` | `formatter` | `W` `WW` `G` `GG` `GGGG` | ISO week number and ISO week year | | `zonename` | `formatter` | `z` `zz` | Short and long timezone names (English) | diff --git a/skills/date-and-time/references/tokens.md b/skills/date-and-time/references/tokens.md index 8cb4bd4..db98415 100644 --- a/skills/date-and-time/references/tokens.md +++ b/skills/date-and-time/references/tokens.md @@ -29,8 +29,8 @@ Available without a plugin. "Parse" says whether the token can be used when read | `ss` | second, padded | 05, 10 | yes | | `s` | second | 5, 10 | yes | | `SSS` | milliseconds, 3 digits | 753, 022 | yes | -| `SS` | milliseconds, 2 digits | 75, 02 | yes | -| `S` | milliseconds, 1 digit | 7, 0 | yes | +| `SS` | first 2 digits of milliseconds (truncated); parse reads hundredths (`75` is 750 ms) | 75, 02 | yes | +| `S` | first digit of milliseconds (truncated); parse reads tenths (`7` is 700 ms) | 7, 0 | yes | | `A` | AM/PM | AM, PM | yes | | `AA` | A.M./P.M. | A.M., P.M. | yes | | `a` | am/pm | am, pm | yes | diff --git a/src/addDays.ts b/src/addDays.ts index facfb08..751d20e 100644 --- a/src/addDays.ts +++ b/src/addDays.ts @@ -1,5 +1,5 @@ import { toParts, fromParts, isUTC } from './datetime.ts'; -import { isTimeZone, createTimezoneDate } from './zone.ts'; +import { createTimezoneDate, toZoneName } from './zone.ts'; import type { TimeZone } from './zone.ts'; /** @@ -10,7 +10,7 @@ import type { TimeZone } from './zone.ts'; * @returns A new Date object with the specified number of days added, or an invalid date if the date or the time zone is invalid */ export function addDays(dateObj: Date, days: number, timeZone?: TimeZone | string) { - const zoneName = isTimeZone(timeZone) ? timeZone.zone_name : timeZone; + const zoneName = toZoneName(timeZone); if (!zoneName || isUTC(zoneName)) { const d = new Date(dateObj.getTime()); diff --git a/src/addMonths.ts b/src/addMonths.ts index 29bca1c..1a3a59d 100644 --- a/src/addMonths.ts +++ b/src/addMonths.ts @@ -1,5 +1,5 @@ import { toParts, fromParts, isUTC } from './datetime.ts'; -import { isTimeZone, createTimezoneDate } from './zone.ts'; +import { createTimezoneDate, toZoneName } from './zone.ts'; import type { TimeZone } from './zone.ts'; /** @@ -10,7 +10,7 @@ import type { TimeZone } from './zone.ts'; * @returns A new Date object with the specified number of months added, or an invalid date if the date or the time zone is invalid */ export function addMonths(dateObj: Date, months: number, timeZone?: TimeZone | string) { - const zoneName = isTimeZone(timeZone) ? timeZone.zone_name : timeZone; + const zoneName = toZoneName(timeZone); if (!zoneName || isUTC(zoneName)) { const d = new Date(dateObj.getTime()); diff --git a/src/compile.ts b/src/compile.ts index 2e3b9cd..90287d9 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -10,8 +10,9 @@ const RBRACKET = /\\\]/g; const PUA_LBRACKET = /\uE000/g; const PUA_RBRACKET = /\uE001/g; -// Regular expression to match format tokens, literal text, and escaped characters -const REGEXP = /\[(?:[^[\]]|\[[^[\]]*])*]|([A-Za-z])\1*|\.{3}|./g; +// Regular expression to match format tokens, literal text, and escaped characters; +// the s flag keeps a line break outside brackets as a literal token +const REGEXP = /\[(?:[^[\]]|\[[^[\]]*])*]|([A-Za-z])\1*|\.{3}|./gs; // Regular expression to match a bracketed literal token; the s flag lets the literal span line breaks export const COMMENT = /^\[(.*)\]$/s; diff --git a/src/duration.ts b/src/duration.ts index fc7db2f..b72371e 100644 --- a/src/duration.ts +++ b/src/duration.ts @@ -64,7 +64,7 @@ const splitTime = (time: number): [number, number] => { }; const sign = (time: number) => { - return time < 0 || time === 0 && (1 / time) === -Infinity ? '-' : ''; + return time < 0 || Object.is(time, -0) ? '-' : ''; }; const format = (times: DurationFormatter, formatString: string, numeral: Numeral = latn) => { diff --git a/src/format.ts b/src/format.ts index e563513..302285e 100644 --- a/src/format.ts +++ b/src/format.ts @@ -3,7 +3,7 @@ import { DateTime } from './datetime.ts'; import { formatter as defaultFormatter } from './formatter.ts'; import en from './locales/en.ts'; import latn from './numerals/latn.ts'; -import { isTimeZone } from './zone.ts'; +import { toZoneName } from './zone.ts'; import type { CompiledObject } from './compile.ts'; import type { FormatterOptions } from './formatter.ts'; @@ -16,7 +16,7 @@ import type { FormatterOptions } from './formatter.ts'; */ export function format(dateObj: Date, arg: string | CompiledObject, options?: FormatterOptions) { const pattern = (typeof arg === 'string' ? compile(arg) : arg).slice(1); - const zoneName = isTimeZone(options?.timeZone) ? options.timeZone.zone_name : options?.timeZone; + const zoneName = toZoneName(options?.timeZone); const dateTime = zoneName ? new DateTime(dateObj, zoneName) : dateObj; // An invalid Date, or a zone name Intl does not recognize, leaves every date field NaN. diff --git a/src/formatter.ts b/src/formatter.ts index cfa6247..01f8315 100644 --- a/src/formatter.ts +++ b/src/formatter.ts @@ -31,11 +31,11 @@ export interface FormatterPluginOptions { */ calendar: 'buddhist' | 'gregory'; -/** - * The time zone to use for formatting dates and times. - * This can be a specific time zone object, an IANA time zone name, or 'UTC' to use Coordinated Universal Time. - * If not specified, it defaults to undefined, which means the local time zone will be used. - */ + /** + * The time zone to use for formatting dates and times. + * This can be a specific time zone object, an IANA time zone name, or 'UTC' to use Coordinated Universal Time. + * If not specified, it defaults to undefined, which means the local time zone will be used. + */ timeZone: TimeZone | string | undefined; /** @@ -66,6 +66,12 @@ const getFullYear = (d: DateLike, calendar: 'buddhist' | 'gregory') => { return d.getFullYear() + (calendar === 'buddhist' ? 543 : 0); }; +const formatOffset = (d: DateLike, separator: string) => { + const offset = d.getTimezoneOffset(); + const absOffset = Math.abs(offset); + return `${offset > 0 ? '-' : '+'}${`0${String(absOffset / 60 | 0)}`.slice(-2)}${separator}${`0${String(absOffset % 60)}`.slice(-2)}`; +}; + type ReservedFormatterToken = | 'YYYY' | 'YY' | 'Y' | 'MMMM' | 'MMM' | 'MM' | 'M' | 'DD' | 'D' | 'HH' | 'H' | 'AA' | 'A' | 'aa' | 'a' | 'hh' | 'h' | 'mm' | 'm' | 'ss' | 's' | 'SSS' | 'SS' | 'S' @@ -191,15 +197,11 @@ const defaultFormatter = { }, Z (d: DateLike) { - const offset = d.getTimezoneOffset(); - const absOffset = Math.abs(offset); - return `${offset > 0 ? '-' : '+'}${`0${String(absOffset / 60 | 0)}`.slice(-2)}${`0${String(absOffset % 60)}`.slice(-2)}`; + return formatOffset(d, ''); }, ZZ (d: DateLike) { - const offset = d.getTimezoneOffset(); - const absOffset = Math.abs(offset); - return `${offset > 0 ? '-' : '+'}${`0${String(absOffset / 60 | 0)}`.slice(-2)}:${`0${String(absOffset % 60)}`.slice(-2)}`; + return formatOffset(d, ':'); } } satisfies Record; diff --git a/src/isValid.ts b/src/isValid.ts index a241f63..b7f8799 100644 --- a/src/isValid.ts +++ b/src/isValid.ts @@ -1,5 +1,8 @@ +import { isUTC } from './datetime.ts'; +import { getDateTimeFormat } from './dtf.ts'; import { preparse } from './preparse.ts'; import { getDaysInMonth } from './utils.ts'; +import { toZoneName } from './zone.ts'; import type { CompiledObject } from './compile.ts'; import type { ParsedComponents, ParserOptions } from './parser.ts'; import type { PreparseResult } from './preparse.ts'; @@ -47,9 +50,10 @@ export function validatePreparseResult(pr: PreparseResult, options?: ParserOptio const base = getDefaultDate(options?.defaultDate); const year = toGregorianYear(pr.Y, options) ?? base.Y; const month = pr.M ?? base.M; + const offset = pr.Z ?? base.Z; + const zoneName = toZoneName(options?.timeZone); return !pr._mismatch - && pr._index > 0 && pr._length > 0 && pr._index === pr._length && pr._match > 0 @@ -62,7 +66,9 @@ export function validatePreparseResult(pr: PreparseResult, options?: ParserOptio && range(pr.m ?? base.m, 0, 59) && range(pr.s ?? base.s, 0, 59) && range(pr.S ?? base.S, 0, 999) - && range(pr.Z ?? base.Z, -913, 956); + && range(offset, -913, 956) + // Without an offset, parse() reads the input in this zone, so Intl must recognize its name. + && (offset !== undefined || !zoneName || isUTC(zoneName) || getDateTimeFormat(zoneName) !== undefined); } /** diff --git a/src/locale.ts b/src/locale.ts index f6ba9ea..862a5ef 100644 --- a/src/locale.ts +++ b/src/locale.ts @@ -1,6 +1,10 @@ import type { CompiledObject } from './compile.ts'; export interface LocaleOptions { + /** + * The tokens of the pattern being formatted or parsed, without the pattern string that + * `compile()` places at index 0. + */ compiledObj: CompiledObject; style: 'long' | 'short' | 'narrow'; case?: 'uppercase' | 'lowercase'; diff --git a/src/parse.ts b/src/parse.ts index fb5d4c5..dd4637b 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,17 +1,16 @@ -import { createTimezoneDate } from './zone.ts'; +import { createTimezoneDate, toZoneName } from './zone.ts'; import { isUTC } from './datetime.ts'; import { preparse } from './preparse.ts'; import { toGregorianYear, getDefaultDate, validatePreparseResult } from './isValid.ts'; import type { CompiledObject } from './compile.ts'; import type { ParserOptions } from './parser.ts'; -import type { TimeZone } from './zone.ts'; -const convert = (Y: number, M: number, D: number, H: number, m: number, s: number, S: number, timeZone?: string | TimeZone) => { +const convert = (Y: number, M: number, D: number, H: number, m: number, s: number, S: number, zoneName?: string) => { // If a specific time zone is provided in the options, use it to create the date. - if (timeZone) { + if (zoneName) { const naiveUTC = Date.UTC(Y, M - 1, D, H, m, s, S); // If the specified time zone is UTC, create the date directly in UTC. Otherwise, create the date using the specified time zone. - return isUTC(timeZone) ? new Date(naiveUTC) : createTimezoneDate(naiveUTC, timeZone); + return isUTC(zoneName) ? new Date(naiveUTC) : createTimezoneDate(naiveUTC, zoneName); } // If no time zone is provided, create the date in the local time zone. return new Date(Y, M - 1, D, H, m, s, S); @@ -45,6 +44,6 @@ export function parse(dateString: string, arg: string | CompiledObject, options? (pr.m ?? base.m) + (offset ?? 0), pr.s ?? base.s, pr.S ?? base.S, - typeof offset === 'number' ? 'UTC' : options?.timeZone + typeof offset === 'number' ? 'UTC' : toZoneName(options?.timeZone) ); } diff --git a/src/parser.ts b/src/parser.ts index 2c6d193..51d55d0 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -87,7 +87,9 @@ export interface ParserPluginOptions { /** * Whether to ignore case when matching strings. * This is useful for matching month names, day names, and meridiems in a case-insensitive manner. - * If true, the parser will convert both the input string and the strings in the locale to lowercase before matching. + * If true, the parser converts both the input string and the strings in the locale with the locale's case rules, + * upper-casing and then lower-casing them, before matching. In a language whose capitals drop accents, such as Greek, + * a name therefore matches with or without its accents. */ ignoreCase: boolean; @@ -158,10 +160,13 @@ export const exec = (re: RegExp, str: string, token?: ParserToken) => { export const find = (array: string[], str: string, options: ParserPluginOptions, token?: ParserToken): ParseResult => { const [array2, str2] = options.ignoreCase ? (() => { const locale = options.locale.getLocale(); - return [array.map(s => s.toLocaleLowerCase(locale)), str.toLocaleLowerCase(locale)]; + // Upper-casing first applies the locale's own case rules, such as Greek capitals dropping the tonos, + // so a name matches however the input is capitalized. + const fold = (s: string) => s.toLocaleUpperCase(locale).toLocaleLowerCase(locale); + return [array.map(fold), fold(str)]; })() : [array, str]; - return array2.reduce((result, item, value) => item.length > result.length && !str2.indexOf(item) + return array2.reduce((result, item, value) => item.length > result.length && str2.startsWith(item) ? { value, length: item.length, token } : result, { value: -1, length: 0, token }); diff --git a/src/plugins/zonename.ts b/src/plugins/zonename.ts index 51bf17a..651cafc 100644 --- a/src/plugins/zonename.ts +++ b/src/plugins/zonename.ts @@ -1,5 +1,5 @@ import timeZoneNames from '@/zonenames.ts'; -import { isTimeZone } from '@/zone.ts'; +import { toZoneName } from '@/zone.ts'; import type { FormatterPluginOptions, DateLike, FormatterPluginObject } from '@/plugin.ts'; const cache = new Map(); @@ -25,12 +25,10 @@ const getShortTimezoneName = (time: number, zoneName?: string) => { export const formatter = { z (d: DateLike, options: FormatterPluginOptions) { - const zoneName = isTimeZone(options.timeZone) ? options.timeZone.zone_name : options.timeZone; - return getShortTimezoneName(d.getTime(), zoneName); + return getShortTimezoneName(d.getTime(), toZoneName(options.timeZone)); }, zz (d: DateLike, options: FormatterPluginOptions) { - const zoneName = isTimeZone(options.timeZone) ? options.timeZone.zone_name : options.timeZone; - return getLongTimezoneName(d.getTime(), zoneName); + return getLongTimezoneName(d.getTime(), toZoneName(options.timeZone)); } } satisfies FormatterPluginObject; diff --git a/src/preparse.ts b/src/preparse.ts index 07153ca..0e5e464 100644 --- a/src/preparse.ts +++ b/src/preparse.ts @@ -1,5 +1,4 @@ import { compile, COMMENT } from './compile.ts'; -import { isTimeZone } from './zone.ts'; import { parser as defaultParser, validateToken } from './parser.ts'; import en from './locales/en.ts'; import latn from './numerals/latn.ts'; @@ -46,9 +45,7 @@ export function preparse(dateString: string, arg: string | CompiledObject, optio numeral: options?.numeral ?? latn, calendar: options?.calendar ?? 'gregory', ignoreCase: options?.ignoreCase ?? false, - timeZone: isTimeZone(options?.timeZone) || typeof options?.timeZone === 'string' - ? options.timeZone || undefined - : undefined, + timeZone: options?.timeZone, locale: options?.locale ?? en, defaultDate: options?.defaultDate ?? {} }; @@ -88,7 +85,7 @@ export function preparse(dateString: string, arg: string | CompiledObject, optio pr._index++; return str.length > 0; } - if (COMMENT.test(token) && !str.indexOf(token.replace(COMMENT, '$1'))) { + if (COMMENT.test(token) && str.startsWith(token.replace(COMMENT, '$1'))) { pr._index += token.length - 2; return true; } diff --git a/src/timezone.ts b/src/timezone.ts index ed0a8ce..81323b2 100644 --- a/src/timezone.ts +++ b/src/timezone.ts @@ -1,2090 +1,3344 @@ import type { TimeZone } from '@/zone.ts'; +/** + * @deprecated Use the IANA time zone name string 'Africa/Abidjan' instead. Time zone objects will be removed in the next major version. + */ export const Abidjan: TimeZone = { zone_name: 'Africa/Abidjan', gmt_offset: [0, -968] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Accra' instead. Time zone objects will be removed in the next major version. + */ export const Accra: TimeZone = { zone_name: 'Africa/Accra', gmt_offset: [1800, 1200, 0, -52] }; +/** + * @deprecated Use the IANA time zone name string 'America/Adak' instead. Time zone objects will be removed in the next major version. + */ export const Adak: TimeZone = { zone_name: 'America/Adak', gmt_offset: [44002, -32400, -36000, -39600, -42398] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Addis_Ababa' instead. Time zone objects will be removed in the next major version. + */ export const Addis_Ababa: TimeZone = { zone_name: 'Africa/Addis_Ababa', gmt_offset: [10800, 9320, 9288] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Adelaide' instead. Time zone objects will be removed in the next major version. + */ export const Adelaide: TimeZone = { zone_name: 'Australia/Adelaide', gmt_offset: [37800, 34200, 33260, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Aden' instead. Time zone objects will be removed in the next major version. + */ export const Aden: TimeZone = { zone_name: 'Asia/Aden', gmt_offset: [10800, 10794] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Algiers' instead. Time zone objects will be removed in the next major version. + */ export const Algiers: TimeZone = { zone_name: 'Africa/Algiers', gmt_offset: [7200, 3600, 732, 561, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Almaty' instead. Time zone objects will be removed in the next major version. + */ export const Almaty: TimeZone = { zone_name: 'Asia/Almaty', gmt_offset: [25200, 21600, 18468, 18000] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Amman' instead. Time zone objects will be removed in the next major version. + */ export const Amman: TimeZone = { zone_name: 'Asia/Amman', gmt_offset: [10800, 8624, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Amsterdam' instead. Time zone objects will be removed in the next major version. + */ export const Amsterdam: TimeZone = { zone_name: 'Europe/Amsterdam', gmt_offset: [7200, 4800, 4772, 3600, 1200, 1172] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Anadyr' instead. Time zone objects will be removed in the next major version. + */ export const Anadyr: TimeZone = { zone_name: 'Asia/Anadyr', gmt_offset: [50400, 46800, 43200, 42596, 39600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Anchorage' instead. Time zone objects will be removed in the next major version. + */ export const Anchorage: TimeZone = { zone_name: 'America/Anchorage', gmt_offset: [50424, -28800, -32400, -35976, -36000] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Andorra' instead. Time zone objects will be removed in the next major version. + */ export const Andorra: TimeZone = { zone_name: 'Europe/Andorra', gmt_offset: [7200, 3600, 364, 0] }; +/** + * @deprecated Use the IANA time zone name string 'America/Anguilla' instead. Time zone objects will be removed in the next major version. + */ export const Anguilla: TimeZone = { zone_name: 'America/Anguilla', gmt_offset: [-14400, -15136] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Antananarivo' instead. Time zone objects will be removed in the next major version. + */ export const Antananarivo: TimeZone = { zone_name: 'Indian/Antananarivo', gmt_offset: [14400, 11404, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Antigua' instead. Time zone objects will be removed in the next major version. + */ export const Antigua: TimeZone = { zone_name: 'America/Antigua', gmt_offset: [-14400, -14832, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Apia' instead. Time zone objects will be removed in the next major version. + */ export const Apia: TimeZone = { zone_name: 'Pacific/Apia', gmt_offset: [50400, 46800, 45184, -36000, -39600, -41216, -41400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Aqtau' instead. Time zone objects will be removed in the next major version. + */ export const Aqtau: TimeZone = { zone_name: 'Asia/Aqtau', gmt_offset: [21600, 18000, 14400, 12064] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Aqtobe' instead. Time zone objects will be removed in the next major version. + */ export const Aqtobe: TimeZone = { zone_name: 'Asia/Aqtobe', gmt_offset: [21600, 18000, 14400, 13720] }; +/** + * @deprecated Use the IANA time zone name string 'America/Araguaina' instead. Time zone objects will be removed in the next major version. + */ export const Araguaina: TimeZone = { zone_name: 'America/Araguaina', gmt_offset: [-7200, -10800, -11568] }; +/** + * @deprecated Use the IANA time zone name string 'America/Aruba' instead. Time zone objects will be removed in the next major version. + */ export const Aruba: TimeZone = { zone_name: 'America/Aruba', gmt_offset: [-14400, -16200, -16824] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Ashgabat' instead. Time zone objects will be removed in the next major version. + */ export const Ashgabat: TimeZone = { zone_name: 'Asia/Ashgabat', gmt_offset: [21600, 18000, 14400, 14012] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Asmara' instead. Time zone objects will be removed in the next major version. + */ export const Asmara: TimeZone = { zone_name: 'Africa/Asmara', gmt_offset: [10800, 9332, 9320] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Astrakhan' instead. Time zone objects will be removed in the next major version. + */ export const Astrakhan: TimeZone = { zone_name: 'Europe/Astrakhan', gmt_offset: [18000, 14400, 11532, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Asuncion' instead. Time zone objects will be removed in the next major version. + */ export const Asuncion: TimeZone = { zone_name: 'America/Asuncion', gmt_offset: [-10800, -13840, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Athens' instead. Time zone objects will be removed in the next major version. + */ export const Athens: TimeZone = { zone_name: 'Europe/Athens', gmt_offset: [10800, 7200, 5692, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Atikokan' instead. Time zone objects will be removed in the next major version. + */ export const Atikokan: TimeZone = { zone_name: 'America/Atikokan', gmt_offset: [-18000, -21600, -21988] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Atyrau' instead. Time zone objects will be removed in the next major version. + */ export const Atyrau: TimeZone = { zone_name: 'Asia/Atyrau', gmt_offset: [21600, 18000, 14400, 12464, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Auckland' instead. Time zone objects will be removed in the next major version. + */ export const Auckland: TimeZone = { zone_name: 'Pacific/Auckland', gmt_offset: [46800, 45000, 43200, 41944, 41400] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Azores' instead. Time zone objects will be removed in the next major version. + */ export const Azores: TimeZone = { zone_name: 'Atlantic/Azores', gmt_offset: [3600, 0, -3600, -6160, -6872, -7200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Baghdad' instead. Time zone objects will be removed in the next major version. + */ export const Baghdad: TimeZone = { zone_name: 'Asia/Baghdad', gmt_offset: [14400, 10800, 10660, 10656] }; +/** + * @deprecated Use the IANA time zone name string 'America/Bahia' instead. Time zone objects will be removed in the next major version. + */ export const Bahia: TimeZone = { zone_name: 'America/Bahia', gmt_offset: [-7200, -9244, -10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Bahia_Banderas' instead. Time zone objects will be removed in the next major version. + */ export const Bahia_Banderas: TimeZone = { zone_name: 'America/Bahia_Banderas', gmt_offset: [-18000, -21600, -25200, -25260] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Bahrain' instead. Time zone objects will be removed in the next major version. + */ export const Bahrain: TimeZone = { zone_name: 'Asia/Bahrain', gmt_offset: [14400, 12600, 12140, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Baku' instead. Time zone objects will be removed in the next major version. + */ export const Baku: TimeZone = { zone_name: 'Asia/Baku', gmt_offset: [18000, 14400, 11964, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Bamako' instead. Time zone objects will be removed in the next major version. + */ export const Bamako: TimeZone = { zone_name: 'Africa/Bamako', gmt_offset: [0, -1920, -3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Bangkok' instead. Time zone objects will be removed in the next major version. + */ export const Bangkok: TimeZone = { zone_name: 'Asia/Bangkok', gmt_offset: [25200, 24124] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Bangui' instead. Time zone objects will be removed in the next major version. + */ export const Bangui: TimeZone = { zone_name: 'Africa/Bangui', gmt_offset: [4460, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Banjul' instead. Time zone objects will be removed in the next major version. + */ export const Banjul: TimeZone = { zone_name: 'Africa/Banjul', gmt_offset: [0, -3600, -3996] }; +/** + * @deprecated Use the IANA time zone name string 'America/Barbados' instead. Time zone objects will be removed in the next major version. + */ export const Barbados: TimeZone = { zone_name: 'America/Barbados', gmt_offset: [-10800, -12600, -14309, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Barnaul' instead. Time zone objects will be removed in the next major version. + */ export const Barnaul: TimeZone = { zone_name: 'Asia/Barnaul', gmt_offset: [28800, 25200, 21600, 20100] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Beirut' instead. Time zone objects will be removed in the next major version. + */ export const Beirut: TimeZone = { zone_name: 'Asia/Beirut', gmt_offset: [10800, 8520, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Belem' instead. Time zone objects will be removed in the next major version. + */ export const Belem: TimeZone = { zone_name: 'America/Belem', gmt_offset: [-7200, -10800, -11636] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Belgrade' instead. Time zone objects will be removed in the next major version. + */ export const Belgrade: TimeZone = { zone_name: 'Europe/Belgrade', gmt_offset: [7200, 4920, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Belize' instead. Time zone objects will be removed in the next major version. + */ export const Belize: TimeZone = { zone_name: 'America/Belize', gmt_offset: [-18000, -19800, -21168, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Berlin' instead. Time zone objects will be removed in the next major version. + */ export const Berlin: TimeZone = { zone_name: 'Europe/Berlin', gmt_offset: [10800, 7200, 3600, 3208] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Bermuda' instead. Time zone objects will be removed in the next major version. + */ export const Bermuda: TimeZone = { zone_name: 'Atlantic/Bermuda', gmt_offset: [-10800, -11958, -14400, -15558] }; +/** + * @deprecated Use the IANA time zone name string 'America/North_Dakota/Beulah' instead. Time zone objects will be removed in the next major version. + */ export const Beulah: TimeZone = { zone_name: 'America/North_Dakota/Beulah', gmt_offset: [-18000, -21600, -24427, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Bishkek' instead. Time zone objects will be removed in the next major version. + */ export const Bishkek: TimeZone = { zone_name: 'Asia/Bishkek', gmt_offset: [25200, 21600, 18000, 17904] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Bissau' instead. Time zone objects will be removed in the next major version. + */ export const Bissau: TimeZone = { zone_name: 'Africa/Bissau', gmt_offset: [0, -3600, -3740] }; +/** + * @deprecated Use the IANA time zone name string 'America/Blanc-Sablon' instead. Time zone objects will be removed in the next major version. + */ export const Blanc_Sablon: TimeZone = { zone_name: 'America/Blanc-Sablon', gmt_offset: [-10800, -13708, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Blantyre' instead. Time zone objects will be removed in the next major version. + */ export const Blantyre: TimeZone = { zone_name: 'Africa/Blantyre', gmt_offset: [8470, 8460, 8400, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Boa_Vista' instead. Time zone objects will be removed in the next major version. + */ export const Boa_Vista: TimeZone = { zone_name: 'America/Boa_Vista', gmt_offset: [-10800, -14400, -14560] }; +/** + * @deprecated Use the IANA time zone name string 'America/Bogota' instead. Time zone objects will be removed in the next major version. + */ export const Bogota: TimeZone = { zone_name: 'America/Bogota', gmt_offset: [-14400, -17776, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Boise' instead. Time zone objects will be removed in the next major version. + */ export const Boise: TimeZone = { zone_name: 'America/Boise', gmt_offset: [-21600, -25200, -27889, -28800] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Bougainville' instead. Time zone objects will be removed in the next major version. + */ export const Bougainville: TimeZone = { zone_name: 'Pacific/Bougainville', gmt_offset: [39600, 37336, 36000, 35312, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Bratislava' instead. Time zone objects will be removed in the next major version. + */ export const Bratislava: TimeZone = { zone_name: 'Europe/Bratislava', gmt_offset: [7200, 3600, 3464, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Brazzaville' instead. Time zone objects will be removed in the next major version. + */ export const Brazzaville: TimeZone = { zone_name: 'Africa/Brazzaville', gmt_offset: [3668, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Brisbane' instead. Time zone objects will be removed in the next major version. + */ export const Brisbane: TimeZone = { zone_name: 'Australia/Brisbane', gmt_offset: [39600, 36728, 36000] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Broken_Hill' instead. Time zone objects will be removed in the next major version. + */ export const Broken_Hill: TimeZone = { zone_name: 'Australia/Broken_Hill', gmt_offset: [37800, 36000, 34200, 33948, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Brunei' instead. Time zone objects will be removed in the next major version. + */ export const Brunei: TimeZone = { zone_name: 'Asia/Brunei', gmt_offset: [28800, 27580, 27000] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Brussels' instead. Time zone objects will be removed in the next major version. + */ export const Brussels: TimeZone = { zone_name: 'Europe/Brussels', gmt_offset: [7200, 3600, 1050, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Bucharest' instead. Time zone objects will be removed in the next major version. + */ export const Bucharest: TimeZone = { zone_name: 'Europe/Bucharest', gmt_offset: [10800, 7200, 6264] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Budapest' instead. Time zone objects will be removed in the next major version. + */ export const Budapest: TimeZone = { zone_name: 'Europe/Budapest', gmt_offset: [7200, 4580, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Buenos_Aires' instead. Time zone objects will be removed in the next major version. + */ export const Buenos_Aires: TimeZone = { zone_name: 'America/Argentina/Buenos_Aires', gmt_offset: [-7200, -10800, -14028, -14400, -15408] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Bujumbura' instead. Time zone objects will be removed in the next major version. + */ export const Bujumbura: TimeZone = { zone_name: 'Africa/Bujumbura', gmt_offset: [7200, 7048] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Busingen' instead. Time zone objects will be removed in the next major version. + */ export const Busingen: TimeZone = { zone_name: 'Europe/Busingen', gmt_offset: [7200, 3600, 2048, 1786] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Cairo' instead. Time zone objects will be removed in the next major version. + */ export const Cairo: TimeZone = { zone_name: 'Africa/Cairo', gmt_offset: [10800, 7509, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Cambridge_Bay' instead. Time zone objects will be removed in the next major version. + */ export const Cambridge_Bay: TimeZone = { zone_name: 'America/Cambridge_Bay', gmt_offset: [0, -18000, -21600, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Campo_Grande' instead. Time zone objects will be removed in the next major version. + */ export const Campo_Grande: TimeZone = { zone_name: 'America/Campo_Grande', gmt_offset: [-10800, -13108, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Canary' instead. Time zone objects will be removed in the next major version. + */ export const Canary: TimeZone = { zone_name: 'Atlantic/Canary', gmt_offset: [3600, 0, -3600, -3696] }; +/** + * @deprecated Use the IANA time zone name string 'America/Cancun' instead. Time zone objects will be removed in the next major version. + */ export const Cancun: TimeZone = { zone_name: 'America/Cancun', gmt_offset: [-14400, -18000, -20824, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Cape_Verde' instead. Time zone objects will be removed in the next major version. + */ export const Cape_Verde: TimeZone = { zone_name: 'Atlantic/Cape_Verde', gmt_offset: [-3600, -5644, -7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Caracas' instead. Time zone objects will be removed in the next major version. + */ export const Caracas: TimeZone = { zone_name: 'America/Caracas', gmt_offset: [-14400, -16060, -16064, -16200] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Casablanca' instead. Time zone objects will be removed in the next major version. + */ export const Casablanca: TimeZone = { zone_name: 'Africa/Casablanca', gmt_offset: [3600, 0, -1820] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Casey' instead. Time zone objects will be removed in the next major version. + */ export const Casey: TimeZone = { zone_name: 'Antarctica/Casey', gmt_offset: [39600, 28800, 0] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Catamarca' instead. Time zone objects will be removed in the next major version. + */ export const Catamarca: TimeZone = { zone_name: 'America/Argentina/Catamarca', gmt_offset: [-7200, -10800, -14400, -15408, -15788] }; +/** + * @deprecated Use the IANA time zone name string 'America/Cayenne' instead. Time zone objects will be removed in the next major version. + */ export const Cayenne: TimeZone = { zone_name: 'America/Cayenne', gmt_offset: [-10800, -12560, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Cayman' instead. Time zone objects will be removed in the next major version. + */ export const Cayman: TimeZone = { zone_name: 'America/Cayman', gmt_offset: [-18000, -18430, -19532] }; +/** + * @deprecated Use the IANA time zone name string 'America/North_Dakota/Center' instead. Time zone objects will be removed in the next major version. + */ export const Center: TimeZone = { zone_name: 'America/North_Dakota/Center', gmt_offset: [-18000, -21600, -24312, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Ceuta' instead. Time zone objects will be removed in the next major version. + */ export const Ceuta: TimeZone = { zone_name: 'Africa/Ceuta', gmt_offset: [7200, 3600, 0, -1276] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Chagos' instead. Time zone objects will be removed in the next major version. + */ export const Chagos: TimeZone = { zone_name: 'Indian/Chagos', gmt_offset: [21600, 18000, 17380] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Chatham' instead. Time zone objects will be removed in the next major version. + */ export const Chatham: TimeZone = { zone_name: 'Pacific/Chatham', gmt_offset: [49500, 45900, 44100, 44028] }; +/** + * @deprecated Use the IANA time zone name string 'America/Chicago' instead. Time zone objects will be removed in the next major version. + */ export const Chicago: TimeZone = { zone_name: 'America/Chicago', gmt_offset: [-18000, -21036, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Chihuahua' instead. Time zone objects will be removed in the next major version. + */ export const Chihuahua: TimeZone = { zone_name: 'America/Chihuahua', gmt_offset: [-18000, -21600, -25200, -25460] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Chisinau' instead. Time zone objects will be removed in the next major version. + */ export const Chisinau: TimeZone = { zone_name: 'Europe/Chisinau', gmt_offset: [14400, 10800, 7200, 6920, 6900, 6264, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Chita' instead. Time zone objects will be removed in the next major version. + */ export const Chita: TimeZone = { zone_name: 'Asia/Chita', gmt_offset: [36000, 32400, 28800, 27232] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Christmas' instead. Time zone objects will be removed in the next major version. + */ export const Christmas: TimeZone = { zone_name: 'Indian/Christmas', gmt_offset: [25372, 25200] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Chuuk' instead. Time zone objects will be removed in the next major version. + */ export const Chuuk: TimeZone = { zone_name: 'Pacific/Chuuk', gmt_offset: [36428, 36000, 32400, -49972] }; +/** + * @deprecated Use the IANA time zone name string 'America/Ciudad_Juarez' instead. Time zone objects will be removed in the next major version. + */ export const Ciudad_Juarez: TimeZone = { zone_name: 'America/Ciudad_Juarez', gmt_offset: [-18000, -21600, -25200, -25556] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Cocos' instead. Time zone objects will be removed in the next major version. + */ export const Cocos: TimeZone = { zone_name: 'Indian/Cocos', gmt_offset: [23400, 23260] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Colombo' instead. Time zone objects will be removed in the next major version. + */ export const Colombo: TimeZone = { zone_name: 'Asia/Colombo', gmt_offset: [23400, 21600, 19800, 19172, 19164] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Comoro' instead. Time zone objects will be removed in the next major version. + */ export const Comoro: TimeZone = { zone_name: 'Indian/Comoro', gmt_offset: [10800, 10384] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Conakry' instead. Time zone objects will be removed in the next major version. + */ export const Conakry: TimeZone = { zone_name: 'Africa/Conakry', gmt_offset: [0, -3292, -3600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Copenhagen' instead. Time zone objects will be removed in the next major version. + */ export const Copenhagen: TimeZone = { zone_name: 'Europe/Copenhagen', gmt_offset: [7200, 3600, 3020] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Cordoba' instead. Time zone objects will be removed in the next major version. + */ export const Cordoba: TimeZone = { zone_name: 'America/Argentina/Cordoba', gmt_offset: [-7200, -10800, -14400, -15408] }; +/** + * @deprecated Use the IANA time zone name string 'America/Costa_Rica' instead. Time zone objects will be removed in the next major version. + */ export const Costa_Rica: TimeZone = { zone_name: 'America/Costa_Rica', gmt_offset: [-18000, -20173, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Coyhaique' instead. Time zone objects will be removed in the next major version. + */ export const Coyhaique: TimeZone = { zone_name: 'America/Coyhaique', gmt_offset: [-10800, -14400, -16965, -17296, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Creston' instead. Time zone objects will be removed in the next major version. + */ export const Creston: TimeZone = { zone_name: 'America/Creston', gmt_offset: [-25200, -27964, -28800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Cuiaba' instead. Time zone objects will be removed in the next major version. + */ export const Cuiaba: TimeZone = { zone_name: 'America/Cuiaba', gmt_offset: [-10800, -13460, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Curacao' instead. Time zone objects will be removed in the next major version. + */ export const Curacao: TimeZone = { zone_name: 'America/Curacao', gmt_offset: [-14400, -16200, -16547] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Dakar' instead. Time zone objects will be removed in the next major version. + */ export const Dakar: TimeZone = { zone_name: 'Africa/Dakar', gmt_offset: [0, -3600, -4184] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Damascus' instead. Time zone objects will be removed in the next major version. + */ export const Damascus: TimeZone = { zone_name: 'Asia/Damascus', gmt_offset: [10800, 8712, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Danmarkshavn' instead. Time zone objects will be removed in the next major version. + */ export const Danmarkshavn: TimeZone = { zone_name: 'America/Danmarkshavn', gmt_offset: [0, -4480, -7200, -10800] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Dar_es_Salaam' instead. Time zone objects will be removed in the next major version. + */ export const Dar_es_Salaam: TimeZone = { zone_name: 'Africa/Dar_es_Salaam', gmt_offset: [10800, 9900, 9428] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Darwin' instead. Time zone objects will be removed in the next major version. + */ export const Darwin: TimeZone = { zone_name: 'Australia/Darwin', gmt_offset: [37800, 34200, 32400, 31400] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Davis' instead. Time zone objects will be removed in the next major version. + */ export const Davis: TimeZone = { zone_name: 'Antarctica/Davis', gmt_offset: [25200, 18000, 0] }; +/** + * @deprecated Use the IANA time zone name string 'America/Dawson' instead. Time zone objects will be removed in the next major version. + */ export const Dawson: TimeZone = { zone_name: 'America/Dawson', gmt_offset: [-25200, -28800, -32400, -33460] }; +/** + * @deprecated Use the IANA time zone name string 'America/Dawson_Creek' instead. Time zone objects will be removed in the next major version. + */ export const Dawson_Creek: TimeZone = { zone_name: 'America/Dawson_Creek', gmt_offset: [-25200, -28800, -28856] }; +/** + * @deprecated Use the IANA time zone name string 'America/Denver' instead. Time zone objects will be removed in the next major version. + */ export const Denver: TimeZone = { zone_name: 'America/Denver', gmt_offset: [-21600, -25196, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Detroit' instead. Time zone objects will be removed in the next major version. + */ export const Detroit: TimeZone = { zone_name: 'America/Detroit', gmt_offset: [-14400, -18000, -19931, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Dhaka' instead. Time zone objects will be removed in the next major version. + */ export const Dhaka: TimeZone = { zone_name: 'Asia/Dhaka', gmt_offset: [25200, 23400, 21700, 21600, 21200, 19800] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Dili' instead. Time zone objects will be removed in the next major version. + */ export const Dili: TimeZone = { zone_name: 'Asia/Dili', gmt_offset: [32400, 30140, 28800] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Djibouti' instead. Time zone objects will be removed in the next major version. + */ export const Djibouti: TimeZone = { zone_name: 'Africa/Djibouti', gmt_offset: [10800, 10356] }; +/** + * @deprecated Use the IANA time zone name string 'America/Dominica' instead. Time zone objects will be removed in the next major version. + */ export const Dominica: TimeZone = { zone_name: 'America/Dominica', gmt_offset: [-14400, -14736] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Douala' instead. Time zone objects will be removed in the next major version. + */ export const Douala: TimeZone = { zone_name: 'Africa/Douala', gmt_offset: [3600, 2328] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Dubai' instead. Time zone objects will be removed in the next major version. + */ export const Dubai: TimeZone = { zone_name: 'Asia/Dubai', gmt_offset: [14400, 13272] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Dublin' instead. Time zone objects will be removed in the next major version. + */ export const Dublin: TimeZone = { zone_name: 'Europe/Dublin', gmt_offset: [3600, 2079, 0, -1521] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/DumontDUrville' instead. Time zone objects will be removed in the next major version. + */ export const DumontDUrville: TimeZone = { zone_name: 'Antarctica/DumontDUrville', gmt_offset: [36000, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Dushanbe' instead. Time zone objects will be removed in the next major version. + */ export const Dushanbe: TimeZone = { zone_name: 'Asia/Dushanbe', gmt_offset: [25200, 21600, 18000, 16512] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Easter' instead. Time zone objects will be removed in the next major version. + */ export const Easter: TimeZone = { zone_name: 'Pacific/Easter', gmt_offset: [-18000, -21600, -25200, -26248] }; +/** + * @deprecated Use the IANA time zone name string 'America/Edmonton' instead. Time zone objects will be removed in the next major version. + */ export const Edmonton: TimeZone = { zone_name: 'America/Edmonton', gmt_offset: [-21600, -25200, -27232] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Efate' instead. Time zone objects will be removed in the next major version. + */ export const Efate: TimeZone = { zone_name: 'Pacific/Efate', gmt_offset: [43200, 40396, 39600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Eirunepe' instead. Time zone objects will be removed in the next major version. + */ export const Eirunepe: TimeZone = { zone_name: 'America/Eirunepe', gmt_offset: [-14400, -16768, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/El_Aaiun' instead. Time zone objects will be removed in the next major version. + */ export const El_Aaiun: TimeZone = { zone_name: 'Africa/El_Aaiun', gmt_offset: [3600, 0, -3168, -3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/El_Salvador' instead. Time zone objects will be removed in the next major version. + */ export const El_Salvador: TimeZone = { zone_name: 'America/El_Salvador', gmt_offset: [-18000, -21408, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Eucla' instead. Time zone objects will be removed in the next major version. + */ export const Eucla: TimeZone = { zone_name: 'Australia/Eucla', gmt_offset: [35100, 31500, 30928] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Fakaofo' instead. Time zone objects will be removed in the next major version. + */ export const Fakaofo: TimeZone = { zone_name: 'Pacific/Fakaofo', gmt_offset: [46800, -39600, -41096] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Famagusta' instead. Time zone objects will be removed in the next major version. + */ export const Famagusta: TimeZone = { zone_name: 'Asia/Famagusta', gmt_offset: [10800, 8148, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Faroe' instead. Time zone objects will be removed in the next major version. + */ export const Faroe: TimeZone = { zone_name: 'Atlantic/Faroe', gmt_offset: [3600, 0, -1624] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Fiji' instead. Time zone objects will be removed in the next major version. + */ export const Fiji: TimeZone = { zone_name: 'Pacific/Fiji', gmt_offset: [46800, 43200, 42944] }; +/** + * @deprecated Use the IANA time zone name string 'America/Fort_Nelson' instead. Time zone objects will be removed in the next major version. + */ export const Fort_Nelson: TimeZone = { zone_name: 'America/Fort_Nelson', gmt_offset: [-25200, -28800, -29447] }; +/** + * @deprecated Use the IANA time zone name string 'America/Fortaleza' instead. Time zone objects will be removed in the next major version. + */ export const Fortaleza: TimeZone = { zone_name: 'America/Fortaleza', gmt_offset: [-7200, -9240, -10800] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Freetown' instead. Time zone objects will be removed in the next major version. + */ export const Freetown: TimeZone = { zone_name: 'Africa/Freetown', gmt_offset: [0, -2400, -3180, -3600] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Funafuti' instead. Time zone objects will be removed in the next major version. + */ export const Funafuti: TimeZone = { zone_name: 'Pacific/Funafuti', gmt_offset: [43200, 43012] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Gaborone' instead. Time zone objects will be removed in the next major version. + */ export const Gaborone: TimeZone = { zone_name: 'Africa/Gaborone', gmt_offset: [10800, 7200, 6220, 5400] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Galapagos' instead. Time zone objects will be removed in the next major version. + */ export const Galapagos: TimeZone = { zone_name: 'Pacific/Galapagos', gmt_offset: [-18000, -21504, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Gambier' instead. Time zone objects will be removed in the next major version. + */ export const Gambier: TimeZone = { zone_name: 'Pacific/Gambier', gmt_offset: [-32388, -32400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Gaza' instead. Time zone objects will be removed in the next major version. + */ export const Gaza: TimeZone = { zone_name: 'Asia/Gaza', gmt_offset: [10800, 8272, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Gibraltar' instead. Time zone objects will be removed in the next major version. + */ export const Gibraltar: TimeZone = { zone_name: 'Europe/Gibraltar', gmt_offset: [7200, 3600, 0, -1284] }; +/** + * @deprecated Use the IANA time zone name string 'America/Glace_Bay' instead. Time zone objects will be removed in the next major version. + */ export const Glace_Bay: TimeZone = { zone_name: 'America/Glace_Bay', gmt_offset: [-10800, -14388, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Goose_Bay' instead. Time zone objects will be removed in the next major version. + */ export const Goose_Bay: TimeZone = { zone_name: 'America/Goose_Bay', gmt_offset: [-7200, -9000, -9052, -10800, -12600, -12652, -14400, -14500] }; +/** + * @deprecated Use the IANA time zone name string 'America/Grand_Turk' instead. Time zone objects will be removed in the next major version. + */ export const Grand_Turk: TimeZone = { zone_name: 'America/Grand_Turk', gmt_offset: [-14400, -17072, -18000, -18430] }; +/** + * @deprecated Use the IANA time zone name string 'America/Grenada' instead. Time zone objects will be removed in the next major version. + */ export const Grenada: TimeZone = { zone_name: 'America/Grenada', gmt_offset: [-14400, -14820] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Guadalcanal' instead. Time zone objects will be removed in the next major version. + */ export const Guadalcanal: TimeZone = { zone_name: 'Pacific/Guadalcanal', gmt_offset: [39600, 38388] }; +/** + * @deprecated Use the IANA time zone name string 'America/Guadeloupe' instead. Time zone objects will be removed in the next major version. + */ export const Guadeloupe: TimeZone = { zone_name: 'America/Guadeloupe', gmt_offset: [-14400, -14768] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Guam' instead. Time zone objects will be removed in the next major version. + */ export const Guam: TimeZone = { zone_name: 'Pacific/Guam', gmt_offset: [39600, 36000, 34740, 32400, -51660] }; +/** + * @deprecated Use the IANA time zone name string 'America/Guatemala' instead. Time zone objects will be removed in the next major version. + */ export const Guatemala: TimeZone = { zone_name: 'America/Guatemala', gmt_offset: [-18000, -21600, -21724] }; +/** + * @deprecated Use the IANA time zone name string 'America/Guayaquil' instead. Time zone objects will be removed in the next major version. + */ export const Guayaquil: TimeZone = { zone_name: 'America/Guayaquil', gmt_offset: [-14400, -18000, -18840, -19160] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Guernsey' instead. Time zone objects will be removed in the next major version. + */ export const Guernsey: TimeZone = { zone_name: 'Europe/Guernsey', gmt_offset: [7200, 3600, 0, -609] }; +/** + * @deprecated Use the IANA time zone name string 'America/Guyana' instead. Time zone objects will be removed in the next major version. + */ export const Guyana: TimeZone = { zone_name: 'America/Guyana', gmt_offset: [-10800, -13500, -13959, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Halifax' instead. Time zone objects will be removed in the next major version. + */ export const Halifax: TimeZone = { zone_name: 'America/Halifax', gmt_offset: [-10800, -14400, -15264] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Harare' instead. Time zone objects will be removed in the next major version. + */ export const Harare: TimeZone = { zone_name: 'Africa/Harare', gmt_offset: [7452, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Havana' instead. Time zone objects will be removed in the next major version. + */ export const Havana: TimeZone = { zone_name: 'America/Havana', gmt_offset: [-14400, -18000, -19768, -19776] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Hebron' instead. Time zone objects will be removed in the next major version. + */ export const Hebron: TimeZone = { zone_name: 'Asia/Hebron', gmt_offset: [10800, 8423, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Helsinki' instead. Time zone objects will be removed in the next major version. + */ export const Helsinki: TimeZone = { zone_name: 'Europe/Helsinki', gmt_offset: [10800, 7200, 5989] }; +/** + * @deprecated Use the IANA time zone name string 'America/Hermosillo' instead. Time zone objects will be removed in the next major version. + */ export const Hermosillo: TimeZone = { zone_name: 'America/Hermosillo', gmt_offset: [-21600, -25200, -26632] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Ho_Chi_Minh' instead. Time zone objects will be removed in the next major version. + */ export const Ho_Chi_Minh: TimeZone = { zone_name: 'Asia/Ho_Chi_Minh', gmt_offset: [32400, 28800, 25590, 25200] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Hobart' instead. Time zone objects will be removed in the next major version. + */ export const Hobart: TimeZone = { zone_name: 'Australia/Hobart', gmt_offset: [39600, 36000, 35356] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Hong_Kong' instead. Time zone objects will be removed in the next major version. + */ export const Hong_Kong: TimeZone = { zone_name: 'Asia/Hong_Kong', gmt_offset: [32400, 30600, 28800, 27402] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Honolulu' instead. Time zone objects will be removed in the next major version. + */ export const Honolulu: TimeZone = { zone_name: 'Pacific/Honolulu', gmt_offset: [-34200, -36000, -37800, -37886] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Hovd' instead. Time zone objects will be removed in the next major version. + */ export const Hovd: TimeZone = { zone_name: 'Asia/Hovd', gmt_offset: [28800, 25200, 21996, 21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Indianapolis' instead. Time zone objects will be removed in the next major version. + */ export const Indianapolis: TimeZone = { zone_name: 'America/Indiana/Indianapolis', gmt_offset: [-14400, -18000, -20678, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Inuvik' instead. Time zone objects will be removed in the next major version. + */ export const Inuvik: TimeZone = { zone_name: 'America/Inuvik', gmt_offset: [0, -21600, -25200, -28800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Iqaluit' instead. Time zone objects will be removed in the next major version. + */ export const Iqaluit: TimeZone = { zone_name: 'America/Iqaluit', gmt_offset: [0, -14400, -18000, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Irkutsk' instead. Time zone objects will be removed in the next major version. + */ export const Irkutsk: TimeZone = { zone_name: 'Asia/Irkutsk', gmt_offset: [32400, 28800, 25200, 25025] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Isle_of_Man' instead. Time zone objects will be removed in the next major version. + */ export const Isle_of_Man: TimeZone = { zone_name: 'Europe/Isle_of_Man', gmt_offset: [7200, 3600, 0, -1075] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Istanbul' instead. Time zone objects will be removed in the next major version. + */ export const Istanbul: TimeZone = { zone_name: 'Europe/Istanbul', gmt_offset: [14400, 10800, 7200, 7016, 6952] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Jakarta' instead. Time zone objects will be removed in the next major version. + */ export const Jakarta: TimeZone = { zone_name: 'Asia/Jakarta', gmt_offset: [32400, 28800, 27000, 26400, 25632, 25200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Jamaica' instead. Time zone objects will be removed in the next major version. + */ export const Jamaica: TimeZone = { zone_name: 'America/Jamaica', gmt_offset: [-14400, -18000, -18430] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Jayapura' instead. Time zone objects will be removed in the next major version. + */ export const Jayapura: TimeZone = { zone_name: 'Asia/Jayapura', gmt_offset: [34200, 33768, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Jersey' instead. Time zone objects will be removed in the next major version. + */ export const Jersey: TimeZone = { zone_name: 'Europe/Jersey', gmt_offset: [7200, 3600, 0, -506] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Jerusalem' instead. Time zone objects will be removed in the next major version. + */ export const Jerusalem: TimeZone = { zone_name: 'Asia/Jerusalem', gmt_offset: [14400, 10800, 8454, 8440, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Johannesburg' instead. Time zone objects will be removed in the next major version. + */ export const Johannesburg: TimeZone = { zone_name: 'Africa/Johannesburg', gmt_offset: [10800, 7200, 6720, 5400] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Juba' instead. Time zone objects will be removed in the next major version. + */ export const Juba: TimeZone = { zone_name: 'Africa/Juba', gmt_offset: [10800, 7588, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Jujuy' instead. Time zone objects will be removed in the next major version. + */ export const Jujuy: TimeZone = { zone_name: 'America/Argentina/Jujuy', gmt_offset: [-7200, -10800, -14400, -15408, -15672] }; +/** + * @deprecated Use the IANA time zone name string 'America/Juneau' instead. Time zone objects will be removed in the next major version. + */ export const Juneau: TimeZone = { zone_name: 'America/Juneau', gmt_offset: [54139, -25200, -28800, -32261, -32400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kabul' instead. Time zone objects will be removed in the next major version. + */ export const Kabul: TimeZone = { zone_name: 'Asia/Kabul', gmt_offset: [16608, 16200, 14400] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Kaliningrad' instead. Time zone objects will be removed in the next major version. + */ export const Kaliningrad: TimeZone = { zone_name: 'Europe/Kaliningrad', gmt_offset: [14400, 10800, 7200, 4920, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kamchatka' instead. Time zone objects will be removed in the next major version. + */ export const Kamchatka: TimeZone = { zone_name: 'Asia/Kamchatka', gmt_offset: [46800, 43200, 39600, 38076] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Kampala' instead. Time zone objects will be removed in the next major version. + */ export const Kampala: TimeZone = { zone_name: 'Africa/Kampala', gmt_offset: [10800, 9900, 9000, 7780] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kanton' instead. Time zone objects will be removed in the next major version. + */ export const Kanton: TimeZone = { zone_name: 'Pacific/Kanton', gmt_offset: [46800, 0, -39600, -43200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Karachi' instead. Time zone objects will be removed in the next major version. + */ export const Karachi: TimeZone = { zone_name: 'Asia/Karachi', gmt_offset: [23400, 21600, 19800, 18000, 16092] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kathmandu' instead. Time zone objects will be removed in the next major version. + */ export const Kathmandu: TimeZone = { zone_name: 'Asia/Kathmandu', gmt_offset: [20700, 20476, 19800] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Kerguelen' instead. Time zone objects will be removed in the next major version. + */ export const Kerguelen: TimeZone = { zone_name: 'Indian/Kerguelen', gmt_offset: [18000, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Khandyga' instead. Time zone objects will be removed in the next major version. + */ export const Khandyga: TimeZone = { zone_name: 'Asia/Khandyga', gmt_offset: [39600, 36000, 32533, 32400, 28800] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Khartoum' instead. Time zone objects will be removed in the next major version. + */ export const Khartoum: TimeZone = { zone_name: 'Africa/Khartoum', gmt_offset: [10800, 7808, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Kigali' instead. Time zone objects will be removed in the next major version. + */ export const Kigali: TimeZone = { zone_name: 'Africa/Kigali', gmt_offset: [7216, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Kinshasa' instead. Time zone objects will be removed in the next major version. + */ export const Kinshasa: TimeZone = { zone_name: 'Africa/Kinshasa', gmt_offset: [3672, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kiritimati' instead. Time zone objects will be removed in the next major version. + */ export const Kiritimati: TimeZone = { zone_name: 'Pacific/Kiritimati', gmt_offset: [50400, -36000, -37760, -38400] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Kirov' instead. Time zone objects will be removed in the next major version. + */ export const Kirov: TimeZone = { zone_name: 'Europe/Kirov', gmt_offset: [18000, 14400, 11928, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Knox' instead. Time zone objects will be removed in the next major version. + */ export const Knox: TimeZone = { zone_name: 'America/Indiana/Knox', gmt_offset: [-18000, -20790, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kolkata' instead. Time zone objects will be removed in the next major version. + */ export const Kolkata: TimeZone = { zone_name: 'Asia/Kolkata', gmt_offset: [23400, 21208, 21200, 19800, 19270] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kosrae' instead. Time zone objects will be removed in the next major version. + */ export const Kosrae: TimeZone = { zone_name: 'Pacific/Kosrae', gmt_offset: [43200, 39600, 39116, 36000, 32400, -47284] }; +/** + * @deprecated Use the IANA time zone name string 'America/Kralendijk' instead. Time zone objects will be removed in the next major version. + */ export const Kralendijk: TimeZone = { zone_name: 'America/Kralendijk', gmt_offset: [-10800, -14400, -15865] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Krasnoyarsk' instead. Time zone objects will be removed in the next major version. + */ export const Krasnoyarsk: TimeZone = { zone_name: 'Asia/Krasnoyarsk', gmt_offset: [28800, 25200, 22286, 21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kuala_Lumpur' instead. Time zone objects will be removed in the next major version. + */ export const Kuala_Lumpur: TimeZone = { zone_name: 'Asia/Kuala_Lumpur', gmt_offset: [32400, 28800, 27000, 26400, 25200, 24925, 24406] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kuching' instead. Time zone objects will be removed in the next major version. + */ export const Kuching: TimeZone = { zone_name: 'Asia/Kuching', gmt_offset: [32400, 30000, 28800, 27000, 26480] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Kuwait' instead. Time zone objects will be removed in the next major version. + */ export const Kuwait: TimeZone = { zone_name: 'Asia/Kuwait', gmt_offset: [11516, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kwajalein' instead. Time zone objects will be removed in the next major version. + */ export const Kwajalein: TimeZone = { zone_name: 'Pacific/Kwajalein', gmt_offset: [43200, 40160, 39600, 36000, 32400, -43200] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Kyiv' instead. Time zone objects will be removed in the next major version. + */ export const Kyiv: TimeZone = { zone_name: 'Europe/Kyiv', gmt_offset: [14400, 10800, 7324, 7200, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/La_Paz' instead. Time zone objects will be removed in the next major version. + */ export const La_Paz: TimeZone = { zone_name: 'America/La_Paz', gmt_offset: [-12756, -14400, -16356] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/La_Rioja' instead. Time zone objects will be removed in the next major version. + */ export const La_Rioja: TimeZone = { zone_name: 'America/Argentina/La_Rioja', gmt_offset: [-7200, -10800, -14400, -15408, -16044] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Lagos' instead. Time zone objects will be removed in the next major version. + */ export const Lagos: TimeZone = { zone_name: 'Africa/Lagos', gmt_offset: [3600, 1800, 815, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Libreville' instead. Time zone objects will be removed in the next major version. + */ export const Libreville: TimeZone = { zone_name: 'Africa/Libreville', gmt_offset: [3600, 2268] }; +/** + * @deprecated Use the IANA time zone name string 'America/Lima' instead. Time zone objects will be removed in the next major version. + */ export const Lima: TimeZone = { zone_name: 'America/Lima', gmt_offset: [-14400, -18000, -18492, -18516] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Lindeman' instead. Time zone objects will be removed in the next major version. + */ export const Lindeman: TimeZone = { zone_name: 'Australia/Lindeman', gmt_offset: [39600, 36000, 35756] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Lisbon' instead. Time zone objects will be removed in the next major version. + */ export const Lisbon: TimeZone = { zone_name: 'Europe/Lisbon', gmt_offset: [7200, 3600, 0, -2205] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Ljubljana' instead. Time zone objects will be removed in the next major version. + */ export const Ljubljana: TimeZone = { zone_name: 'Europe/Ljubljana', gmt_offset: [7200, 3600, 3484] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Lome' instead. Time zone objects will be removed in the next major version. + */ export const Lome: TimeZone = { zone_name: 'Africa/Lome', gmt_offset: [292, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/London' instead. Time zone objects will be removed in the next major version. + */ export const London: TimeZone = { zone_name: 'Europe/London', gmt_offset: [7200, 3600, 0, -75] }; +/** + * @deprecated Use the IANA time zone name string 'Arctic/Longyearbyen' instead. Time zone objects will be removed in the next major version. + */ export const Longyearbyen: TimeZone = { zone_name: 'Arctic/Longyearbyen', gmt_offset: [10800, 7200, 3600, 3208] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Lord_Howe' instead. Time zone objects will be removed in the next major version. + */ export const Lord_Howe: TimeZone = { zone_name: 'Australia/Lord_Howe', gmt_offset: [41400, 39600, 38180, 37800, 36000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Los_Angeles' instead. Time zone objects will be removed in the next major version. + */ export const Los_Angeles: TimeZone = { zone_name: 'America/Los_Angeles', gmt_offset: [-25200, -28378, -28800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Kentucky/Louisville' instead. Time zone objects will be removed in the next major version. + */ export const Louisville: TimeZone = { zone_name: 'America/Kentucky/Louisville', gmt_offset: [-14400, -18000, -20582, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Lower_Princes' instead. Time zone objects will be removed in the next major version. + */ export const Lower_Princes: TimeZone = { zone_name: 'America/Lower_Princes', gmt_offset: [-10800, -14400, -15865] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Luanda' instead. Time zone objects will be removed in the next major version. + */ export const Luanda: TimeZone = { zone_name: 'Africa/Luanda', gmt_offset: [3600, 3176, 3124] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Lubumbashi' instead. Time zone objects will be removed in the next major version. + */ export const Lubumbashi: TimeZone = { zone_name: 'Africa/Lubumbashi', gmt_offset: [7200, 6592, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Lusaka' instead. Time zone objects will be removed in the next major version. + */ export const Lusaka: TimeZone = { zone_name: 'Africa/Lusaka', gmt_offset: [7200, 6788] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Luxembourg' instead. Time zone objects will be removed in the next major version. + */ export const Luxembourg: TimeZone = { zone_name: 'Europe/Luxembourg', gmt_offset: [7200, 3600, 1476, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Macau' instead. Time zone objects will be removed in the next major version. + */ export const Macau: TimeZone = { zone_name: 'Asia/Macau', gmt_offset: [36000, 32400, 28800, 27250] }; +/** + * @deprecated Use the IANA time zone name string 'America/Maceio' instead. Time zone objects will be removed in the next major version. + */ export const Maceio: TimeZone = { zone_name: 'America/Maceio', gmt_offset: [-7200, -8572, -10800] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Macquarie' instead. Time zone objects will be removed in the next major version. + */ export const Macquarie: TimeZone = { zone_name: 'Antarctica/Macquarie', gmt_offset: [39600, 36000, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Madeira' instead. Time zone objects will be removed in the next major version. + */ export const Madeira: TimeZone = { zone_name: 'Atlantic/Madeira', gmt_offset: [3600, 0, -3600, -4056] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Madrid' instead. Time zone objects will be removed in the next major version. + */ export const Madrid: TimeZone = { zone_name: 'Europe/Madrid', gmt_offset: [7200, 3600, 0, -884] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Magadan' instead. Time zone objects will be removed in the next major version. + */ export const Magadan: TimeZone = { zone_name: 'Asia/Magadan', gmt_offset: [43200, 39600, 36192, 36000] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Mahe' instead. Time zone objects will be removed in the next major version. + */ export const Mahe: TimeZone = { zone_name: 'Indian/Mahe', gmt_offset: [14400, 13308] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Majuro' instead. Time zone objects will be removed in the next major version. + */ export const Majuro: TimeZone = { zone_name: 'Pacific/Majuro', gmt_offset: [43200, 41088, 39600, 36000, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Makassar' instead. Time zone objects will be removed in the next major version. + */ export const Makassar: TimeZone = { zone_name: 'Asia/Makassar', gmt_offset: [32400, 28800, 28656] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Malabo' instead. Time zone objects will be removed in the next major version. + */ export const Malabo: TimeZone = { zone_name: 'Africa/Malabo', gmt_offset: [3600, 2108, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Maldives' instead. Time zone objects will be removed in the next major version. + */ export const Maldives: TimeZone = { zone_name: 'Indian/Maldives', gmt_offset: [18000, 17640] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Malta' instead. Time zone objects will be removed in the next major version. + */ export const Malta: TimeZone = { zone_name: 'Europe/Malta', gmt_offset: [7200, 3600, 3484] }; +/** + * @deprecated Use the IANA time zone name string 'America/Managua' instead. Time zone objects will be removed in the next major version. + */ export const Managua: TimeZone = { zone_name: 'America/Managua', gmt_offset: [-18000, -20708, -20712, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Manaus' instead. Time zone objects will be removed in the next major version. + */ export const Manaus: TimeZone = { zone_name: 'America/Manaus', gmt_offset: [-10800, -14400, -14404] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Manila' instead. Time zone objects will be removed in the next major version. + */ export const Manila: TimeZone = { zone_name: 'Asia/Manila', gmt_offset: [32400, 29032, 28800, -57368] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Maputo' instead. Time zone objects will be removed in the next major version. + */ export const Maputo: TimeZone = { zone_name: 'Africa/Maputo', gmt_offset: [7818, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Marengo' instead. Time zone objects will be removed in the next major version. + */ export const Marengo: TimeZone = { zone_name: 'America/Indiana/Marengo', gmt_offset: [-14400, -18000, -20723, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Mariehamn' instead. Time zone objects will be removed in the next major version. + */ export const Mariehamn: TimeZone = { zone_name: 'Europe/Mariehamn', gmt_offset: [10800, 7200, 5989] }; +/** + * @deprecated Use the IANA time zone name string 'America/Marigot' instead. Time zone objects will be removed in the next major version. + */ export const Marigot: TimeZone = { zone_name: 'America/Marigot', gmt_offset: [-10800, -14400, -15865] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Marquesas' instead. Time zone objects will be removed in the next major version. + */ export const Marquesas: TimeZone = { zone_name: 'Pacific/Marquesas', gmt_offset: [-33480, -34200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Martinique' instead. Time zone objects will be removed in the next major version. + */ export const Martinique: TimeZone = { zone_name: 'America/Martinique', gmt_offset: [-10800, -14400, -14660] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Maseru' instead. Time zone objects will be removed in the next major version. + */ export const Maseru: TimeZone = { zone_name: 'Africa/Maseru', gmt_offset: [10800, 7200, 6600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Matamoros' instead. Time zone objects will be removed in the next major version. + */ export const Matamoros: TimeZone = { zone_name: 'America/Matamoros', gmt_offset: [-18000, -21600, -23400] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Mauritius' instead. Time zone objects will be removed in the next major version. + */ export const Mauritius: TimeZone = { zone_name: 'Indian/Mauritius', gmt_offset: [18000, 14400, 13800] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Mawson' instead. Time zone objects will be removed in the next major version. + */ export const Mawson: TimeZone = { zone_name: 'Antarctica/Mawson', gmt_offset: [21600, 18000, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Mayotte' instead. Time zone objects will be removed in the next major version. + */ export const Mayotte: TimeZone = { zone_name: 'Indian/Mayotte', gmt_offset: [10856, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Mazatlan' instead. Time zone objects will be removed in the next major version. + */ export const Mazatlan: TimeZone = { zone_name: 'America/Mazatlan', gmt_offset: [-21600, -25200, -25540] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Mbabane' instead. Time zone objects will be removed in the next major version. + */ export const Mbabane: TimeZone = { zone_name: 'Africa/Mbabane', gmt_offset: [7464, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/McMurdo' instead. Time zone objects will be removed in the next major version. + */ export const McMurdo: TimeZone = { zone_name: 'Antarctica/McMurdo', gmt_offset: [46800, 43200, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Melbourne' instead. Time zone objects will be removed in the next major version. + */ export const Melbourne: TimeZone = { zone_name: 'Australia/Melbourne', gmt_offset: [39600, 36000, 34792] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Mendoza' instead. Time zone objects will be removed in the next major version. + */ export const Mendoza: TimeZone = { zone_name: 'America/Argentina/Mendoza', gmt_offset: [-7200, -10800, -14400, -15408, -16516] }; +/** + * @deprecated Use the IANA time zone name string 'America/Menominee' instead. Time zone objects will be removed in the next major version. + */ export const Menominee: TimeZone = { zone_name: 'America/Menominee', gmt_offset: [-18000, -21027, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Merida' instead. Time zone objects will be removed in the next major version. + */ export const Merida: TimeZone = { zone_name: 'America/Merida', gmt_offset: [-18000, -21508, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Metlakatla' instead. Time zone objects will be removed in the next major version. + */ export const Metlakatla: TimeZone = { zone_name: 'America/Metlakatla', gmt_offset: [54822, -25200, -28800, -31578, -32400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Mexico_City' instead. Time zone objects will be removed in the next major version. + */ export const Mexico_City: TimeZone = { zone_name: 'America/Mexico_City', gmt_offset: [-18000, -21600, -23796, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Midway' instead. Time zone objects will be removed in the next major version. + */ export const Midway: TimeZone = { zone_name: 'Pacific/Midway', gmt_offset: [-36000, -39600, -42568] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Minsk' instead. Time zone objects will be removed in the next major version. + */ export const Minsk: TimeZone = { zone_name: 'Europe/Minsk', gmt_offset: [14400, 10800, 7200, 6616, 6600, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Miquelon' instead. Time zone objects will be removed in the next major version. + */ export const Miquelon: TimeZone = { zone_name: 'America/Miquelon', gmt_offset: [-7200, -10800, -13480, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Mogadishu' instead. Time zone objects will be removed in the next major version. + */ export const Mogadishu: TimeZone = { zone_name: 'Africa/Mogadishu', gmt_offset: [10888, 10800, 9000] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Monaco' instead. Time zone objects will be removed in the next major version. + */ export const Monaco: TimeZone = { zone_name: 'Europe/Monaco', gmt_offset: [7200, 3600, 1772, 561, 0] }; +/** + * @deprecated Use the IANA time zone name string 'America/Moncton' instead. Time zone objects will be removed in the next major version. + */ export const Moncton: TimeZone = { zone_name: 'America/Moncton', gmt_offset: [-10800, -14400, -15548, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Monrovia' instead. Time zone objects will be removed in the next major version. + */ export const Monrovia: TimeZone = { zone_name: 'Africa/Monrovia', gmt_offset: [0, -2588, -2670] }; +/** + * @deprecated Use the IANA time zone name string 'America/Monterrey' instead. Time zone objects will be removed in the next major version. + */ export const Monterrey: TimeZone = { zone_name: 'America/Monterrey', gmt_offset: [-18000, -21600, -24076, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Montevideo' instead. Time zone objects will be removed in the next major version. + */ export const Montevideo: TimeZone = { zone_name: 'America/Montevideo', gmt_offset: [-5400, -7200, -9000, -10800, -12600, -13491, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Kentucky/Monticello' instead. Time zone objects will be removed in the next major version. + */ export const Monticello: TimeZone = { zone_name: 'America/Kentucky/Monticello', gmt_offset: [-14400, -18000, -20364, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Montserrat' instead. Time zone objects will be removed in the next major version. + */ export const Montserrat: TimeZone = { zone_name: 'America/Montserrat', gmt_offset: [-14400, -14932] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Moscow' instead. Time zone objects will be removed in the next major version. + */ export const Moscow: TimeZone = { zone_name: 'Europe/Moscow', gmt_offset: [18000, 16279, 14400, 12679, 10800, 9079, 9017, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Muscat' instead. Time zone objects will be removed in the next major version. + */ export const Muscat: TimeZone = { zone_name: 'Asia/Muscat', gmt_offset: [14400, 14064] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Nairobi' instead. Time zone objects will be removed in the next major version. + */ export const Nairobi: TimeZone = { zone_name: 'Africa/Nairobi', gmt_offset: [10800, 9900, 9000, 8836] }; +/** + * @deprecated Use the IANA time zone name string 'America/Nassau' instead. Time zone objects will be removed in the next major version. + */ export const Nassau: TimeZone = { zone_name: 'America/Nassau', gmt_offset: [-14400, -18000, -18570] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Nauru' instead. Time zone objects will be removed in the next major version. + */ export const Nauru: TimeZone = { zone_name: 'Pacific/Nauru', gmt_offset: [43200, 41400, 40060, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Ndjamena' instead. Time zone objects will be removed in the next major version. + */ export const Ndjamena: TimeZone = { zone_name: 'Africa/Ndjamena', gmt_offset: [7200, 3612, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/North_Dakota/New_Salem' instead. Time zone objects will be removed in the next major version. + */ export const New_Salem: TimeZone = { zone_name: 'America/North_Dakota/New_Salem', gmt_offset: [-18000, -21600, -24339, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'America/New_York' instead. Time zone objects will be removed in the next major version. + */ export const New_York: TimeZone = { zone_name: 'America/New_York', gmt_offset: [-14400, -17762, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Niamey' instead. Time zone objects will be removed in the next major version. + */ export const Niamey: TimeZone = { zone_name: 'Africa/Niamey', gmt_offset: [3600, 508, 0, -3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Nicosia' instead. Time zone objects will be removed in the next major version. + */ export const Nicosia: TimeZone = { zone_name: 'Asia/Nicosia', gmt_offset: [10800, 8008, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Niue' instead. Time zone objects will be removed in the next major version. + */ export const Niue: TimeZone = { zone_name: 'Pacific/Niue', gmt_offset: [-39600, -40780, -40800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Nome' instead. Time zone objects will be removed in the next major version. + */ export const Nome: TimeZone = { zone_name: 'America/Nome', gmt_offset: [46702, -28800, -32400, -36000, -39600, -39698] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Norfolk' instead. Time zone objects will be removed in the next major version. + */ export const Norfolk: TimeZone = { zone_name: 'Pacific/Norfolk', gmt_offset: [45000, 43200, 41400, 40320, 40312, 39600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Noronha' instead. Time zone objects will be removed in the next major version. + */ export const Noronha: TimeZone = { zone_name: 'America/Noronha', gmt_offset: [-3600, -7200, -7780] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Nouakchott' instead. Time zone objects will be removed in the next major version. + */ export const Nouakchott: TimeZone = { zone_name: 'Africa/Nouakchott', gmt_offset: [0, -3600, -3828] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Noumea' instead. Time zone objects will be removed in the next major version. + */ export const Noumea: TimeZone = { zone_name: 'Pacific/Noumea', gmt_offset: [43200, 39948, 39600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Novokuznetsk' instead. Time zone objects will be removed in the next major version. + */ export const Novokuznetsk: TimeZone = { zone_name: 'Asia/Novokuznetsk', gmt_offset: [28800, 25200, 21600, 20928] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Novosibirsk' instead. Time zone objects will be removed in the next major version. + */ export const Novosibirsk: TimeZone = { zone_name: 'Asia/Novosibirsk', gmt_offset: [28800, 25200, 21600, 19900] }; +/** + * @deprecated Use the IANA time zone name string 'America/Nuuk' instead. Time zone objects will be removed in the next major version. + */ export const Nuuk: TimeZone = { zone_name: 'America/Nuuk', gmt_offset: [-3600, -7200, -10800, -12416] }; +/** + * @deprecated Use the IANA time zone name string 'America/Ojinaga' instead. Time zone objects will be removed in the next major version. + */ export const Ojinaga: TimeZone = { zone_name: 'America/Ojinaga', gmt_offset: [-18000, -21600, -25060, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Omsk' instead. Time zone objects will be removed in the next major version. + */ export const Omsk: TimeZone = { zone_name: 'Asia/Omsk', gmt_offset: [25200, 21600, 18000, 17610] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Oral' instead. Time zone objects will be removed in the next major version. + */ export const Oral: TimeZone = { zone_name: 'Asia/Oral', gmt_offset: [21600, 18000, 14400, 12324, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Oslo' instead. Time zone objects will be removed in the next major version. + */ export const Oslo: TimeZone = { zone_name: 'Europe/Oslo', gmt_offset: [7200, 3600, 2580] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Ouagadougou' instead. Time zone objects will be removed in the next major version. + */ export const Ouagadougou: TimeZone = { zone_name: 'Africa/Ouagadougou', gmt_offset: [0, -364] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Pago_Pago' instead. Time zone objects will be removed in the next major version. + */ export const Pago_Pago: TimeZone = { zone_name: 'Pacific/Pago_Pago', gmt_offset: [45432, -39600, -40968] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Palau' instead. Time zone objects will be removed in the next major version. + */ export const Palau: TimeZone = { zone_name: 'Pacific/Palau', gmt_offset: [32400, 32276, -54124] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Palmer' instead. Time zone objects will be removed in the next major version. + */ export const Palmer: TimeZone = { zone_name: 'Antarctica/Palmer', gmt_offset: [0, -7200, -10800, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Panama' instead. Time zone objects will be removed in the next major version. + */ export const Panama: TimeZone = { zone_name: 'America/Panama', gmt_offset: [-18000, -19088, -19176] }; +/** + * @deprecated Use the IANA time zone name string 'America/Paramaribo' instead. Time zone objects will be removed in the next major version. + */ export const Paramaribo: TimeZone = { zone_name: 'America/Paramaribo', gmt_offset: [-10800, -12600, -13236, -13240, -13252] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Paris' instead. Time zone objects will be removed in the next major version. + */ export const Paris: TimeZone = { zone_name: 'Europe/Paris', gmt_offset: [7200, 3600, 561, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Perth' instead. Time zone objects will be removed in the next major version. + */ export const Perth: TimeZone = { zone_name: 'Australia/Perth', gmt_offset: [32400, 28800, 27804] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Petersburg' instead. Time zone objects will be removed in the next major version. + */ export const Petersburg: TimeZone = { zone_name: 'America/Indiana/Petersburg', gmt_offset: [-14400, -18000, -20947, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Phnom_Penh' instead. Time zone objects will be removed in the next major version. + */ export const Phnom_Penh: TimeZone = { zone_name: 'Asia/Phnom_Penh', gmt_offset: [32400, 28800, 25590, 25200, 25180] }; +/** + * @deprecated Use the IANA time zone name string 'America/Phoenix' instead. Time zone objects will be removed in the next major version. + */ export const Phoenix: TimeZone = { zone_name: 'America/Phoenix', gmt_offset: [-21600, -25200, -26898] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Pitcairn' instead. Time zone objects will be removed in the next major version. + */ export const Pitcairn: TimeZone = { zone_name: 'Pacific/Pitcairn', gmt_offset: [-28800, -30600, -31220] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Podgorica' instead. Time zone objects will be removed in the next major version. + */ export const Podgorica: TimeZone = { zone_name: 'Europe/Podgorica', gmt_offset: [7200, 4920, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Pohnpei' instead. Time zone objects will be removed in the next major version. + */ export const Pohnpei: TimeZone = { zone_name: 'Pacific/Pohnpei', gmt_offset: [39600, 37972, 36000, 32400, -48428] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Pontianak' instead. Time zone objects will be removed in the next major version. + */ export const Pontianak: TimeZone = { zone_name: 'Asia/Pontianak', gmt_offset: [32400, 28800, 27000, 26240, 25200] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Port_Moresby' instead. Time zone objects will be removed in the next major version. + */ export const Port_Moresby: TimeZone = { zone_name: 'Pacific/Port_Moresby', gmt_offset: [36000, 35320, 35312] }; +/** + * @deprecated Use the IANA time zone name string 'America/Port_of_Spain' instead. Time zone objects will be removed in the next major version. + */ export const Port_of_Spain: TimeZone = { zone_name: 'America/Port_of_Spain', gmt_offset: [-14400, -14764] }; +/** + * @deprecated Use the IANA time zone name string 'America/Port-au-Prince' instead. Time zone objects will be removed in the next major version. + */ export const Port_au_Prince: TimeZone = { zone_name: 'America/Port-au-Prince', gmt_offset: [-14400, -17340, -17360, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Porto_Velho' instead. Time zone objects will be removed in the next major version. + */ export const Porto_Velho: TimeZone = { zone_name: 'America/Porto_Velho', gmt_offset: [-10800, -14400, -15336] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Porto-Novo' instead. Time zone objects will be removed in the next major version. + */ export const Porto_Novo: TimeZone = { zone_name: 'Africa/Porto-Novo', gmt_offset: [3600, 628, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Prague' instead. Time zone objects will be removed in the next major version. + */ export const Prague: TimeZone = { zone_name: 'Europe/Prague', gmt_offset: [7200, 3600, 3464, 0] }; +/** + * @deprecated Use the IANA time zone name string 'America/Puerto_Rico' instead. Time zone objects will be removed in the next major version. + */ export const Puerto_Rico: TimeZone = { zone_name: 'America/Puerto_Rico', gmt_offset: [-10800, -14400, -15865] }; +/** + * @deprecated Use the IANA time zone name string 'America/Punta_Arenas' instead. Time zone objects will be removed in the next major version. + */ export const Punta_Arenas: TimeZone = { zone_name: 'America/Punta_Arenas', gmt_offset: [-10800, -14400, -16965, -17020, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Pyongyang' instead. Time zone objects will be removed in the next major version. + */ export const Pyongyang: TimeZone = { zone_name: 'Asia/Pyongyang', gmt_offset: [32400, 30600, 30180] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Qatar' instead. Time zone objects will be removed in the next major version. + */ export const Qatar: TimeZone = { zone_name: 'Asia/Qatar', gmt_offset: [14400, 12368, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Qostanay' instead. Time zone objects will be removed in the next major version. + */ export const Qostanay: TimeZone = { zone_name: 'Asia/Qostanay', gmt_offset: [21600, 18000, 15268, 14400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Qyzylorda' instead. Time zone objects will be removed in the next major version. + */ export const Qyzylorda: TimeZone = { zone_name: 'Asia/Qyzylorda', gmt_offset: [21600, 18000, 15712, 14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Rankin_Inlet' instead. Time zone objects will be removed in the next major version. + */ export const Rankin_Inlet: TimeZone = { zone_name: 'America/Rankin_Inlet', gmt_offset: [0, -18000, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Rarotonga' instead. Time zone objects will be removed in the next major version. + */ export const Rarotonga: TimeZone = { zone_name: 'Pacific/Rarotonga', gmt_offset: [48056, -34200, -36000, -37800, -38344] }; +/** + * @deprecated Use the IANA time zone name string 'America/Recife' instead. Time zone objects will be removed in the next major version. + */ export const Recife: TimeZone = { zone_name: 'America/Recife', gmt_offset: [-7200, -8376, -10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Regina' instead. Time zone objects will be removed in the next major version. + */ export const Regina: TimeZone = { zone_name: 'America/Regina', gmt_offset: [-21600, -25116, -25200] }; +/** + * @deprecated Use the IANA time zone name string 'America/Resolute' instead. Time zone objects will be removed in the next major version. + */ export const Resolute: TimeZone = { zone_name: 'America/Resolute', gmt_offset: [0, -18000, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Indian/Reunion' instead. Time zone objects will be removed in the next major version. + */ export const Reunion: TimeZone = { zone_name: 'Indian/Reunion', gmt_offset: [14400, 13312] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Reykjavik' instead. Time zone objects will be removed in the next major version. + */ export const Reykjavik: TimeZone = { zone_name: 'Atlantic/Reykjavik', gmt_offset: [0, -3600, -5280] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Riga' instead. Time zone objects will be removed in the next major version. + */ export const Riga: TimeZone = { zone_name: 'Europe/Riga', gmt_offset: [14400, 10800, 9394, 7200, 5794, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Rio_Branco' instead. Time zone objects will be removed in the next major version. + */ export const Rio_Branco: TimeZone = { zone_name: 'America/Rio_Branco', gmt_offset: [-14400, -16272, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Rio_Gallegos' instead. Time zone objects will be removed in the next major version. + */ export const Rio_Gallegos: TimeZone = { zone_name: 'America/Argentina/Rio_Gallegos', gmt_offset: [-7200, -10800, -14400, -15408, -16612] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Riyadh' instead. Time zone objects will be removed in the next major version. + */ export const Riyadh: TimeZone = { zone_name: 'Asia/Riyadh', gmt_offset: [11212, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Rome' instead. Time zone objects will be removed in the next major version. + */ export const Rome: TimeZone = { zone_name: 'Europe/Rome', gmt_offset: [7200, 3600, 2996] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Rothera' instead. Time zone objects will be removed in the next major version. + */ export const Rothera: TimeZone = { zone_name: 'Antarctica/Rothera', gmt_offset: [0, -10800] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Saipan' instead. Time zone objects will be removed in the next major version. + */ export const Saipan: TimeZone = { zone_name: 'Pacific/Saipan', gmt_offset: [39600, 36000, 34980, 32400, -51420] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Sakhalin' instead. Time zone objects will be removed in the next major version. + */ export const Sakhalin: TimeZone = { zone_name: 'Asia/Sakhalin', gmt_offset: [43200, 39600, 36000, 34248, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Salta' instead. Time zone objects will be removed in the next major version. + */ export const Salta: TimeZone = { zone_name: 'America/Argentina/Salta', gmt_offset: [-7200, -10800, -14400, -15408, -15700] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Samara' instead. Time zone objects will be removed in the next major version. + */ export const Samara: TimeZone = { zone_name: 'Europe/Samara', gmt_offset: [18000, 14400, 12020, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Samarkand' instead. Time zone objects will be removed in the next major version. + */ export const Samarkand: TimeZone = { zone_name: 'Asia/Samarkand', gmt_offset: [21600, 18000, 16073, 14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/San_Juan' instead. Time zone objects will be removed in the next major version. + */ export const San_Juan: TimeZone = { zone_name: 'America/Argentina/San_Juan', gmt_offset: [-7200, -10800, -14400, -15408, -16444] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/San_Luis' instead. Time zone objects will be removed in the next major version. + */ export const San_Luis: TimeZone = { zone_name: 'America/Argentina/San_Luis', gmt_offset: [-7200, -10800, -14400, -15408, -15924] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/San_Marino' instead. Time zone objects will be removed in the next major version. + */ export const San_Marino: TimeZone = { zone_name: 'Europe/San_Marino', gmt_offset: [7200, 3600, 2996] }; +/** + * @deprecated Use the IANA time zone name string 'America/Santarem' instead. Time zone objects will be removed in the next major version. + */ export const Santarem: TimeZone = { zone_name: 'America/Santarem', gmt_offset: [-10800, -13128, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'America/Santiago' instead. Time zone objects will be removed in the next major version. + */ export const Santiago: TimeZone = { zone_name: 'America/Santiago', gmt_offset: [-10800, -14400, -16965, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Santo_Domingo' instead. Time zone objects will be removed in the next major version. + */ export const Santo_Domingo: TimeZone = { zone_name: 'America/Santo_Domingo', gmt_offset: [-14400, -16200, -16776, -16800, -18000] }; +/** + * @deprecated Use the IANA time zone name string 'America/Sao_Paulo' instead. Time zone objects will be removed in the next major version. + */ export const Sao_Paulo: TimeZone = { zone_name: 'America/Sao_Paulo', gmt_offset: [-7200, -10800, -11188] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Sao_Tome' instead. Time zone objects will be removed in the next major version. + */ export const Sao_Tome: TimeZone = { zone_name: 'Africa/Sao_Tome', gmt_offset: [3600, 1616, 0, -2205] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Sarajevo' instead. Time zone objects will be removed in the next major version. + */ export const Sarajevo: TimeZone = { zone_name: 'Europe/Sarajevo', gmt_offset: [7200, 4420, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Saratov' instead. Time zone objects will be removed in the next major version. + */ export const Saratov: TimeZone = { zone_name: 'Europe/Saratov', gmt_offset: [18000, 14400, 11058, 10800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Scoresbysund' instead. Time zone objects will be removed in the next major version. + */ export const Scoresbysund: TimeZone = { zone_name: 'America/Scoresbysund', gmt_offset: [0, -3600, -5272, -7200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Seoul' instead. Time zone objects will be removed in the next major version. + */ export const Seoul: TimeZone = { zone_name: 'Asia/Seoul', gmt_offset: [36000, 34200, 32400, 30600, 30472] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Shanghai' instead. Time zone objects will be removed in the next major version. + */ export const Shanghai: TimeZone = { zone_name: 'Asia/Shanghai', gmt_offset: [32400, 29143, 28800] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Simferopol' instead. Time zone objects will be removed in the next major version. + */ export const Simferopol: TimeZone = { zone_name: 'Europe/Simferopol', gmt_offset: [14400, 10800, 8184, 8160, 7200, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Singapore' instead. Time zone objects will be removed in the next major version. + */ export const Singapore: TimeZone = { zone_name: 'Asia/Singapore', gmt_offset: [32400, 28800, 27000, 26400, 25200, 24925] }; +/** + * @deprecated Use the IANA time zone name string 'America/Sitka' instead. Time zone objects will be removed in the next major version. + */ export const Sitka: TimeZone = { zone_name: 'America/Sitka', gmt_offset: [53927, -25200, -28800, -32400, -32473] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Skopje' instead. Time zone objects will be removed in the next major version. + */ export const Skopje: TimeZone = { zone_name: 'Europe/Skopje', gmt_offset: [7200, 5144, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Sofia' instead. Time zone objects will be removed in the next major version. + */ export const Sofia: TimeZone = { zone_name: 'Europe/Sofia', gmt_offset: [10800, 7200, 7016, 5596, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/South_Georgia' instead. Time zone objects will be removed in the next major version. + */ export const South_Georgia: TimeZone = { zone_name: 'Atlantic/South_Georgia', gmt_offset: [-7200, -8768] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Srednekolymsk' instead. Time zone objects will be removed in the next major version. + */ export const Srednekolymsk: TimeZone = { zone_name: 'Asia/Srednekolymsk', gmt_offset: [43200, 39600, 36892, 36000] }; +/** + * @deprecated Use the IANA time zone name string 'America/St_Barthelemy' instead. Time zone objects will be removed in the next major version. + */ export const St_Barthelemy: TimeZone = { zone_name: 'America/St_Barthelemy', gmt_offset: [-10800, -14400, -15865] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/St_Helena' instead. Time zone objects will be removed in the next major version. + */ export const St_Helena: TimeZone = { zone_name: 'Atlantic/St_Helena', gmt_offset: [0, -1368] }; +/** + * @deprecated Use the IANA time zone name string 'America/St_Johns' instead. Time zone objects will be removed in the next major version. + */ export const St_Johns: TimeZone = { zone_name: 'America/St_Johns', gmt_offset: [-5400, -9000, -9052, -12600, -12652] }; +/** + * @deprecated Use the IANA time zone name string 'America/St_Kitts' instead. Time zone objects will be removed in the next major version. + */ export const St_Kitts: TimeZone = { zone_name: 'America/St_Kitts', gmt_offset: [-14400, -15052] }; +/** + * @deprecated Use the IANA time zone name string 'America/St_Lucia' instead. Time zone objects will be removed in the next major version. + */ export const St_Lucia: TimeZone = { zone_name: 'America/St_Lucia', gmt_offset: [-14400, -14640] }; +/** + * @deprecated Use the IANA time zone name string 'America/St_Thomas' instead. Time zone objects will be removed in the next major version. + */ export const St_Thomas: TimeZone = { zone_name: 'America/St_Thomas', gmt_offset: [-14400, -15584] }; +/** + * @deprecated Use the IANA time zone name string 'America/St_Vincent' instead. Time zone objects will be removed in the next major version. + */ export const St_Vincent: TimeZone = { zone_name: 'America/St_Vincent', gmt_offset: [-14400, -14696] }; +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Stanley' instead. Time zone objects will be removed in the next major version. + */ export const Stanley: TimeZone = { zone_name: 'Atlantic/Stanley', gmt_offset: [-7200, -10800, -13884, -14400] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Stockholm' instead. Time zone objects will be removed in the next major version. + */ export const Stockholm: TimeZone = { zone_name: 'Europe/Stockholm', gmt_offset: [7200, 4332, 3614, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Swift_Current' instead. Time zone objects will be removed in the next major version. + */ export const Swift_Current: TimeZone = { zone_name: 'America/Swift_Current', gmt_offset: [-21600, -25200, -25880] }; +/** + * @deprecated Use the IANA time zone name string 'Australia/Sydney' instead. Time zone objects will be removed in the next major version. + */ export const Sydney: TimeZone = { zone_name: 'Australia/Sydney', gmt_offset: [39600, 36292, 36000] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Syowa' instead. Time zone objects will be removed in the next major version. + */ export const Syowa: TimeZone = { zone_name: 'Antarctica/Syowa', gmt_offset: [10800, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Tahiti' instead. Time zone objects will be removed in the next major version. + */ export const Tahiti: TimeZone = { zone_name: 'Pacific/Tahiti', gmt_offset: [-35896, -36000] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Taipei' instead. Time zone objects will be removed in the next major version. + */ export const Taipei: TimeZone = { zone_name: 'Asia/Taipei', gmt_offset: [32400, 29160, 28800] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Tallinn' instead. Time zone objects will be removed in the next major version. + */ export const Tallinn: TimeZone = { zone_name: 'Europe/Tallinn', gmt_offset: [14400, 10800, 7200, 5940, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Tarawa' instead. Time zone objects will be removed in the next major version. + */ export const Tarawa: TimeZone = { zone_name: 'Pacific/Tarawa', gmt_offset: [43200, 41524] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Tashkent' instead. Time zone objects will be removed in the next major version. + */ export const Tashkent: TimeZone = { zone_name: 'Asia/Tashkent', gmt_offset: [25200, 21600, 18000, 16631] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Tbilisi' instead. Time zone objects will be removed in the next major version. + */ export const Tbilisi: TimeZone = { zone_name: 'Asia/Tbilisi', gmt_offset: [18000, 14400, 10800, 10751] }; +/** + * @deprecated Use the IANA time zone name string 'America/Tegucigalpa' instead. Time zone objects will be removed in the next major version. + */ export const Tegucigalpa: TimeZone = { zone_name: 'America/Tegucigalpa', gmt_offset: [-18000, -20932, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Tehran' instead. Time zone objects will be removed in the next major version. + */ export const Tehran: TimeZone = { zone_name: 'Asia/Tehran', gmt_offset: [18000, 16200, 14400, 12600, 12344] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Tell_City' instead. Time zone objects will be removed in the next major version. + */ export const Tell_City: TimeZone = { zone_name: 'America/Indiana/Tell_City', gmt_offset: [-14400, -18000, -20823, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Thimphu' instead. Time zone objects will be removed in the next major version. + */ export const Thimphu: TimeZone = { zone_name: 'Asia/Thimphu', gmt_offset: [21600, 21516, 19800] }; +/** + * @deprecated Use the IANA time zone name string 'America/Thule' instead. Time zone objects will be removed in the next major version. + */ export const Thule: TimeZone = { zone_name: 'America/Thule', gmt_offset: [-10800, -14400, -16508] }; +/** + * @deprecated Use the IANA time zone name string 'America/Tijuana' instead. Time zone objects will be removed in the next major version. + */ export const Tijuana: TimeZone = { zone_name: 'America/Tijuana', gmt_offset: [-25200, -28084, -28800] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Tirane' instead. Time zone objects will be removed in the next major version. + */ export const Tirane: TimeZone = { zone_name: 'Europe/Tirane', gmt_offset: [7200, 4760, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Tokyo' instead. Time zone objects will be removed in the next major version. + */ export const Tokyo: TimeZone = { zone_name: 'Asia/Tokyo', gmt_offset: [36000, 33539, 32400] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Tomsk' instead. Time zone objects will be removed in the next major version. + */ export const Tomsk: TimeZone = { zone_name: 'Asia/Tomsk', gmt_offset: [28800, 25200, 21600, 20391] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Tongatapu' instead. Time zone objects will be removed in the next major version. + */ export const Tongatapu: TimeZone = { zone_name: 'Pacific/Tongatapu', gmt_offset: [50400, 46800, 44400, 44352] }; +/** + * @deprecated Use the IANA time zone name string 'America/Toronto' instead. Time zone objects will be removed in the next major version. + */ export const Toronto: TimeZone = { zone_name: 'America/Toronto', gmt_offset: [-14400, -18000, -19052] }; +/** + * @deprecated Use the IANA time zone name string 'America/Tortola' instead. Time zone objects will be removed in the next major version. + */ export const Tortola: TimeZone = { zone_name: 'America/Tortola', gmt_offset: [-14400, -15508] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Tripoli' instead. Time zone objects will be removed in the next major version. + */ export const Tripoli: TimeZone = { zone_name: 'Africa/Tripoli', gmt_offset: [7200, 3600, 3164] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Troll' instead. Time zone objects will be removed in the next major version. + */ export const Troll: TimeZone = { zone_name: 'Antarctica/Troll', gmt_offset: [7200, 0] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Tucuman' instead. Time zone objects will be removed in the next major version. + */ export const Tucuman: TimeZone = { zone_name: 'America/Argentina/Tucuman', gmt_offset: [-7200, -10800, -14400, -15408, -15652] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Tunis' instead. Time zone objects will be removed in the next major version. + */ export const Tunis: TimeZone = { zone_name: 'Africa/Tunis', gmt_offset: [7200, 3600, 2444, 561] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Ulaanbaatar' instead. Time zone objects will be removed in the next major version. + */ export const Ulaanbaatar: TimeZone = { zone_name: 'Asia/Ulaanbaatar', gmt_offset: [32400, 28800, 25652, 25200] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Ulyanovsk' instead. Time zone objects will be removed in the next major version. + */ export const Ulyanovsk: TimeZone = { zone_name: 'Europe/Ulyanovsk', gmt_offset: [18000, 14400, 11616, 10800, 7200] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Urumqi' instead. Time zone objects will be removed in the next major version. + */ export const Urumqi: TimeZone = { zone_name: 'Asia/Urumqi', gmt_offset: [21600, 21020] }; +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Ushuaia' instead. Time zone objects will be removed in the next major version. + */ export const Ushuaia: TimeZone = { zone_name: 'America/Argentina/Ushuaia', gmt_offset: [-7200, -10800, -14400, -15408, -16392] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Ust-Nera' instead. Time zone objects will be removed in the next major version. + */ export const Ust_Nera: TimeZone = { zone_name: 'Asia/Ust-Nera', gmt_offset: [43200, 39600, 36000, 34374, 32400, 28800] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Vaduz' instead. Time zone objects will be removed in the next major version. + */ export const Vaduz: TimeZone = { zone_name: 'Europe/Vaduz', gmt_offset: [7200, 3600, 2284] }; +/** + * @deprecated Use the IANA time zone name string 'America/Vancouver' instead. Time zone objects will be removed in the next major version. + */ export const Vancouver: TimeZone = { zone_name: 'America/Vancouver', gmt_offset: [-25200, -28800, -29548] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Vatican' instead. Time zone objects will be removed in the next major version. + */ export const Vatican: TimeZone = { zone_name: 'Europe/Vatican', gmt_offset: [7200, 3600, 2996] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Vevay' instead. Time zone objects will be removed in the next major version. + */ export const Vevay: TimeZone = { zone_name: 'America/Indiana/Vevay', gmt_offset: [-14400, -18000, -20416, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Vienna' instead. Time zone objects will be removed in the next major version. + */ export const Vienna: TimeZone = { zone_name: 'Europe/Vienna', gmt_offset: [7200, 3921, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Vientiane' instead. Time zone objects will be removed in the next major version. + */ export const Vientiane: TimeZone = { zone_name: 'Asia/Vientiane', gmt_offset: [32400, 28800, 25590, 25200, 24624] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Vilnius' instead. Time zone objects will be removed in the next major version. + */ export const Vilnius: TimeZone = { zone_name: 'Europe/Vilnius', gmt_offset: [14400, 10800, 7200, 6076, 5736, 5040, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Vincennes' instead. Time zone objects will be removed in the next major version. + */ export const Vincennes: TimeZone = { zone_name: 'America/Indiana/Vincennes', gmt_offset: [-14400, -18000, -21007, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Vladivostok' instead. Time zone objects will be removed in the next major version. + */ export const Vladivostok: TimeZone = { zone_name: 'Asia/Vladivostok', gmt_offset: [39600, 36000, 32400, 31651] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Volgograd' instead. Time zone objects will be removed in the next major version. + */ export const Volgograd: TimeZone = { zone_name: 'Europe/Volgograd', gmt_offset: [18000, 14400, 10800, 10660] }; +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Vostok' instead. Time zone objects will be removed in the next major version. + */ export const Vostok: TimeZone = { zone_name: 'Antarctica/Vostok', gmt_offset: [25200, 18000, 0] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Wake' instead. Time zone objects will be removed in the next major version. + */ export const Wake: TimeZone = { zone_name: 'Pacific/Wake', gmt_offset: [43200, 39988] }; +/** + * @deprecated Use the IANA time zone name string 'Pacific/Wallis' instead. Time zone objects will be removed in the next major version. + */ export const Wallis: TimeZone = { zone_name: 'Pacific/Wallis', gmt_offset: [44120, 43200] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Warsaw' instead. Time zone objects will be removed in the next major version. + */ export const Warsaw: TimeZone = { zone_name: 'Europe/Warsaw', gmt_offset: [10800, 7200, 5040, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Whitehorse' instead. Time zone objects will be removed in the next major version. + */ export const Whitehorse: TimeZone = { zone_name: 'America/Whitehorse', gmt_offset: [-25200, -28800, -32400, -32412] }; +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Winamac' instead. Time zone objects will be removed in the next major version. + */ export const Winamac: TimeZone = { zone_name: 'America/Indiana/Winamac', gmt_offset: [-14400, -18000, -20785, -21600] }; +/** + * @deprecated Use the IANA time zone name string 'Africa/Windhoek' instead. Time zone objects will be removed in the next major version. + */ export const Windhoek: TimeZone = { zone_name: 'Africa/Windhoek', gmt_offset: [10800, 7200, 5400, 4104, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'America/Winnipeg' instead. Time zone objects will be removed in the next major version. + */ export const Winnipeg: TimeZone = { zone_name: 'America/Winnipeg', gmt_offset: [-18000, -21600, -23316] }; +/** + * @deprecated Use the IANA time zone name string 'America/Yakutat' instead. Time zone objects will be removed in the next major version. + */ export const Yakutat: TimeZone = { zone_name: 'America/Yakutat', gmt_offset: [52865, -28800, -32400, -33535] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Yakutsk' instead. Time zone objects will be removed in the next major version. + */ export const Yakutsk: TimeZone = { zone_name: 'Asia/Yakutsk', gmt_offset: [36000, 32400, 31138, 28800] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Yangon' instead. Time zone objects will be removed in the next major version. + */ export const Yangon: TimeZone = { zone_name: 'Asia/Yangon', gmt_offset: [32400, 23400, 23087] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Yekaterinburg' instead. Time zone objects will be removed in the next major version. + */ export const Yekaterinburg: TimeZone = { zone_name: 'Asia/Yekaterinburg', gmt_offset: [21600, 18000, 14553, 14400, 13505] }; +/** + * @deprecated Use the IANA time zone name string 'Asia/Yerevan' instead. Time zone objects will be removed in the next major version. + */ export const Yerevan: TimeZone = { zone_name: 'Asia/Yerevan', gmt_offset: [18000, 14400, 10800, 10680] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Zagreb' instead. Time zone objects will be removed in the next major version. + */ export const Zagreb: TimeZone = { zone_name: 'Europe/Zagreb', gmt_offset: [7200, 3832, 3600] }; +/** + * @deprecated Use the IANA time zone name string 'Europe/Zurich' instead. Time zone objects will be removed in the next major version. + */ export const Zurich: TimeZone = { zone_name: 'Europe/Zurich', gmt_offset: [7200, 3600, 2048, 1786] diff --git a/src/timezones/Africa/Abidjan.ts b/src/timezones/Africa/Abidjan.ts index 27962ff..1ee9082 100644 --- a/src/timezones/Africa/Abidjan.ts +++ b/src/timezones/Africa/Abidjan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Abidjan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Abidjan', gmt_offset: [0, -968] diff --git a/src/timezones/Africa/Accra.ts b/src/timezones/Africa/Accra.ts index da7f18b..f456777 100644 --- a/src/timezones/Africa/Accra.ts +++ b/src/timezones/Africa/Accra.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Accra' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Accra', gmt_offset: [1800, 1200, 0, -52] diff --git a/src/timezones/Africa/Addis_Ababa.ts b/src/timezones/Africa/Addis_Ababa.ts index a3c6976..37f0f2f 100644 --- a/src/timezones/Africa/Addis_Ababa.ts +++ b/src/timezones/Africa/Addis_Ababa.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Addis_Ababa' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Addis_Ababa', gmt_offset: [10800, 9320, 9288] diff --git a/src/timezones/Africa/Algiers.ts b/src/timezones/Africa/Algiers.ts index 2ae71e8..d9c0030 100644 --- a/src/timezones/Africa/Algiers.ts +++ b/src/timezones/Africa/Algiers.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Algiers' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Algiers', gmt_offset: [7200, 3600, 732, 561, 0] diff --git a/src/timezones/Africa/Asmara.ts b/src/timezones/Africa/Asmara.ts index aac7790..b110b0f 100644 --- a/src/timezones/Africa/Asmara.ts +++ b/src/timezones/Africa/Asmara.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Asmara' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Asmara', gmt_offset: [10800, 9332, 9320] diff --git a/src/timezones/Africa/Bamako.ts b/src/timezones/Africa/Bamako.ts index 7279503..44ed62d 100644 --- a/src/timezones/Africa/Bamako.ts +++ b/src/timezones/Africa/Bamako.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Bamako' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Bamako', gmt_offset: [0, -1920, -3600] diff --git a/src/timezones/Africa/Bangui.ts b/src/timezones/Africa/Bangui.ts index 96725d8..e6e7df3 100644 --- a/src/timezones/Africa/Bangui.ts +++ b/src/timezones/Africa/Bangui.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Bangui' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Bangui', gmt_offset: [4460, 3600] diff --git a/src/timezones/Africa/Banjul.ts b/src/timezones/Africa/Banjul.ts index fc83066..b4775d6 100644 --- a/src/timezones/Africa/Banjul.ts +++ b/src/timezones/Africa/Banjul.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Banjul' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Banjul', gmt_offset: [0, -3600, -3996] diff --git a/src/timezones/Africa/Bissau.ts b/src/timezones/Africa/Bissau.ts index 0c7af83..67d8b43 100644 --- a/src/timezones/Africa/Bissau.ts +++ b/src/timezones/Africa/Bissau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Bissau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Bissau', gmt_offset: [0, -3600, -3740] diff --git a/src/timezones/Africa/Blantyre.ts b/src/timezones/Africa/Blantyre.ts index 73bc029..d6ce81f 100644 --- a/src/timezones/Africa/Blantyre.ts +++ b/src/timezones/Africa/Blantyre.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Blantyre' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Blantyre', gmt_offset: [8470, 8460, 8400, 7200] diff --git a/src/timezones/Africa/Brazzaville.ts b/src/timezones/Africa/Brazzaville.ts index 4804221..e393cac 100644 --- a/src/timezones/Africa/Brazzaville.ts +++ b/src/timezones/Africa/Brazzaville.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Brazzaville' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Brazzaville', gmt_offset: [3668, 3600] diff --git a/src/timezones/Africa/Bujumbura.ts b/src/timezones/Africa/Bujumbura.ts index d9de034..19524f1 100644 --- a/src/timezones/Africa/Bujumbura.ts +++ b/src/timezones/Africa/Bujumbura.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Bujumbura' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Bujumbura', gmt_offset: [7200, 7048] diff --git a/src/timezones/Africa/Cairo.ts b/src/timezones/Africa/Cairo.ts index dbaa6d2..4ab2094 100644 --- a/src/timezones/Africa/Cairo.ts +++ b/src/timezones/Africa/Cairo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Cairo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Cairo', gmt_offset: [10800, 7509, 7200] diff --git a/src/timezones/Africa/Casablanca.ts b/src/timezones/Africa/Casablanca.ts index 9d2b532..e84fb15 100644 --- a/src/timezones/Africa/Casablanca.ts +++ b/src/timezones/Africa/Casablanca.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Casablanca' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Casablanca', gmt_offset: [3600, 0, -1820] diff --git a/src/timezones/Africa/Ceuta.ts b/src/timezones/Africa/Ceuta.ts index ec8103e..e0ecd34 100644 --- a/src/timezones/Africa/Ceuta.ts +++ b/src/timezones/Africa/Ceuta.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Ceuta' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Ceuta', gmt_offset: [7200, 3600, 0, -1276] diff --git a/src/timezones/Africa/Conakry.ts b/src/timezones/Africa/Conakry.ts index 2cde786..d49a085 100644 --- a/src/timezones/Africa/Conakry.ts +++ b/src/timezones/Africa/Conakry.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Conakry' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Conakry', gmt_offset: [0, -3292, -3600] diff --git a/src/timezones/Africa/Dakar.ts b/src/timezones/Africa/Dakar.ts index c6e5749..d16137e 100644 --- a/src/timezones/Africa/Dakar.ts +++ b/src/timezones/Africa/Dakar.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Dakar' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Dakar', gmt_offset: [0, -3600, -4184] diff --git a/src/timezones/Africa/Dar_es_Salaam.ts b/src/timezones/Africa/Dar_es_Salaam.ts index 84c330e..a1e23e8 100644 --- a/src/timezones/Africa/Dar_es_Salaam.ts +++ b/src/timezones/Africa/Dar_es_Salaam.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Dar_es_Salaam' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Dar_es_Salaam', gmt_offset: [10800, 9900, 9428] diff --git a/src/timezones/Africa/Djibouti.ts b/src/timezones/Africa/Djibouti.ts index f49aacc..23fb27c 100644 --- a/src/timezones/Africa/Djibouti.ts +++ b/src/timezones/Africa/Djibouti.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Djibouti' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Djibouti', gmt_offset: [10800, 10356] diff --git a/src/timezones/Africa/Douala.ts b/src/timezones/Africa/Douala.ts index 1ca7fae..709a212 100644 --- a/src/timezones/Africa/Douala.ts +++ b/src/timezones/Africa/Douala.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Douala' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Douala', gmt_offset: [3600, 2328] diff --git a/src/timezones/Africa/El_Aaiun.ts b/src/timezones/Africa/El_Aaiun.ts index 900d8fb..039fbce 100644 --- a/src/timezones/Africa/El_Aaiun.ts +++ b/src/timezones/Africa/El_Aaiun.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/El_Aaiun' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/El_Aaiun', gmt_offset: [3600, 0, -3168, -3600] diff --git a/src/timezones/Africa/Freetown.ts b/src/timezones/Africa/Freetown.ts index 879e37b..2403589 100644 --- a/src/timezones/Africa/Freetown.ts +++ b/src/timezones/Africa/Freetown.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Freetown' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Freetown', gmt_offset: [0, -2400, -3180, -3600] diff --git a/src/timezones/Africa/Gaborone.ts b/src/timezones/Africa/Gaborone.ts index 1d8e419..fd13603 100644 --- a/src/timezones/Africa/Gaborone.ts +++ b/src/timezones/Africa/Gaborone.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Gaborone' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Gaborone', gmt_offset: [10800, 7200, 6220, 5400] diff --git a/src/timezones/Africa/Harare.ts b/src/timezones/Africa/Harare.ts index f9f7bf7..19870bb 100644 --- a/src/timezones/Africa/Harare.ts +++ b/src/timezones/Africa/Harare.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Harare' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Harare', gmt_offset: [7452, 7200] diff --git a/src/timezones/Africa/Johannesburg.ts b/src/timezones/Africa/Johannesburg.ts index 329652c..6b243c3 100644 --- a/src/timezones/Africa/Johannesburg.ts +++ b/src/timezones/Africa/Johannesburg.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Johannesburg' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Johannesburg', gmt_offset: [10800, 7200, 6720, 5400] diff --git a/src/timezones/Africa/Juba.ts b/src/timezones/Africa/Juba.ts index 0cb7c46..3cf27bf 100644 --- a/src/timezones/Africa/Juba.ts +++ b/src/timezones/Africa/Juba.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Juba' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Juba', gmt_offset: [10800, 7588, 7200] diff --git a/src/timezones/Africa/Kampala.ts b/src/timezones/Africa/Kampala.ts index a79a02f..eb934fd 100644 --- a/src/timezones/Africa/Kampala.ts +++ b/src/timezones/Africa/Kampala.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Kampala' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Kampala', gmt_offset: [10800, 9900, 9000, 7780] diff --git a/src/timezones/Africa/Khartoum.ts b/src/timezones/Africa/Khartoum.ts index a6ecd39..8ed2c1a 100644 --- a/src/timezones/Africa/Khartoum.ts +++ b/src/timezones/Africa/Khartoum.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Khartoum' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Khartoum', gmt_offset: [10800, 7808, 7200] diff --git a/src/timezones/Africa/Kigali.ts b/src/timezones/Africa/Kigali.ts index 9995384..bac8f6a 100644 --- a/src/timezones/Africa/Kigali.ts +++ b/src/timezones/Africa/Kigali.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Kigali' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Kigali', gmt_offset: [7216, 7200] diff --git a/src/timezones/Africa/Kinshasa.ts b/src/timezones/Africa/Kinshasa.ts index f9e6422..f39e98e 100644 --- a/src/timezones/Africa/Kinshasa.ts +++ b/src/timezones/Africa/Kinshasa.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Kinshasa' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Kinshasa', gmt_offset: [3672, 3600] diff --git a/src/timezones/Africa/Lagos.ts b/src/timezones/Africa/Lagos.ts index cf37a38..a917006 100644 --- a/src/timezones/Africa/Lagos.ts +++ b/src/timezones/Africa/Lagos.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Lagos' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Lagos', gmt_offset: [3600, 1800, 815, 0] diff --git a/src/timezones/Africa/Libreville.ts b/src/timezones/Africa/Libreville.ts index 8020c0d..8136719 100644 --- a/src/timezones/Africa/Libreville.ts +++ b/src/timezones/Africa/Libreville.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Libreville' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Libreville', gmt_offset: [3600, 2268] diff --git a/src/timezones/Africa/Lome.ts b/src/timezones/Africa/Lome.ts index 5803330..899b94d 100644 --- a/src/timezones/Africa/Lome.ts +++ b/src/timezones/Africa/Lome.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Lome' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Lome', gmt_offset: [292, 0] diff --git a/src/timezones/Africa/Luanda.ts b/src/timezones/Africa/Luanda.ts index 6713ddb..6bd900f 100644 --- a/src/timezones/Africa/Luanda.ts +++ b/src/timezones/Africa/Luanda.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Luanda' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Luanda', gmt_offset: [3600, 3176, 3124] diff --git a/src/timezones/Africa/Lubumbashi.ts b/src/timezones/Africa/Lubumbashi.ts index f094250..676ca35 100644 --- a/src/timezones/Africa/Lubumbashi.ts +++ b/src/timezones/Africa/Lubumbashi.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Lubumbashi' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Lubumbashi', gmt_offset: [7200, 6592, 3600] diff --git a/src/timezones/Africa/Lusaka.ts b/src/timezones/Africa/Lusaka.ts index a1c5bf8..bc8994b 100644 --- a/src/timezones/Africa/Lusaka.ts +++ b/src/timezones/Africa/Lusaka.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Lusaka' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Lusaka', gmt_offset: [7200, 6788] diff --git a/src/timezones/Africa/Malabo.ts b/src/timezones/Africa/Malabo.ts index 5e594df..ee1c072 100644 --- a/src/timezones/Africa/Malabo.ts +++ b/src/timezones/Africa/Malabo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Malabo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Malabo', gmt_offset: [3600, 2108, 0] diff --git a/src/timezones/Africa/Maputo.ts b/src/timezones/Africa/Maputo.ts index 30f34c9..591b441 100644 --- a/src/timezones/Africa/Maputo.ts +++ b/src/timezones/Africa/Maputo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Maputo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Maputo', gmt_offset: [7818, 7200] diff --git a/src/timezones/Africa/Maseru.ts b/src/timezones/Africa/Maseru.ts index 564b24a..f9d4fa6 100644 --- a/src/timezones/Africa/Maseru.ts +++ b/src/timezones/Africa/Maseru.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Maseru' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Maseru', gmt_offset: [10800, 7200, 6600] diff --git a/src/timezones/Africa/Mbabane.ts b/src/timezones/Africa/Mbabane.ts index fcb572b..6710a7d 100644 --- a/src/timezones/Africa/Mbabane.ts +++ b/src/timezones/Africa/Mbabane.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Mbabane' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Mbabane', gmt_offset: [7464, 7200] diff --git a/src/timezones/Africa/Mogadishu.ts b/src/timezones/Africa/Mogadishu.ts index 083d36f..a09dd65 100644 --- a/src/timezones/Africa/Mogadishu.ts +++ b/src/timezones/Africa/Mogadishu.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Mogadishu' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Mogadishu', gmt_offset: [10888, 10800, 9000] diff --git a/src/timezones/Africa/Monrovia.ts b/src/timezones/Africa/Monrovia.ts index 7aae099..036a829 100644 --- a/src/timezones/Africa/Monrovia.ts +++ b/src/timezones/Africa/Monrovia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Monrovia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Monrovia', gmt_offset: [0, -2588, -2670] diff --git a/src/timezones/Africa/Nairobi.ts b/src/timezones/Africa/Nairobi.ts index f3a21c9..09c67ab 100644 --- a/src/timezones/Africa/Nairobi.ts +++ b/src/timezones/Africa/Nairobi.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Nairobi' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Nairobi', gmt_offset: [10800, 9900, 9000, 8836] diff --git a/src/timezones/Africa/Ndjamena.ts b/src/timezones/Africa/Ndjamena.ts index 15bdb6a..9323891 100644 --- a/src/timezones/Africa/Ndjamena.ts +++ b/src/timezones/Africa/Ndjamena.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Ndjamena' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Ndjamena', gmt_offset: [7200, 3612, 3600] diff --git a/src/timezones/Africa/Niamey.ts b/src/timezones/Africa/Niamey.ts index 3d1df8f..3d60967 100644 --- a/src/timezones/Africa/Niamey.ts +++ b/src/timezones/Africa/Niamey.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Niamey' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Niamey', gmt_offset: [3600, 508, 0, -3600] diff --git a/src/timezones/Africa/Nouakchott.ts b/src/timezones/Africa/Nouakchott.ts index 7728dcd..3c7c9fa 100644 --- a/src/timezones/Africa/Nouakchott.ts +++ b/src/timezones/Africa/Nouakchott.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Nouakchott' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Nouakchott', gmt_offset: [0, -3600, -3828] diff --git a/src/timezones/Africa/Ouagadougou.ts b/src/timezones/Africa/Ouagadougou.ts index 5074704..a2c8c75 100644 --- a/src/timezones/Africa/Ouagadougou.ts +++ b/src/timezones/Africa/Ouagadougou.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Ouagadougou' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Ouagadougou', gmt_offset: [0, -364] diff --git a/src/timezones/Africa/Porto-Novo.ts b/src/timezones/Africa/Porto-Novo.ts index 57274d7..a3dcae6 100644 --- a/src/timezones/Africa/Porto-Novo.ts +++ b/src/timezones/Africa/Porto-Novo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Porto-Novo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Porto-Novo', gmt_offset: [3600, 628, 0] diff --git a/src/timezones/Africa/Sao_Tome.ts b/src/timezones/Africa/Sao_Tome.ts index 0eb13d8..6eb7e27 100644 --- a/src/timezones/Africa/Sao_Tome.ts +++ b/src/timezones/Africa/Sao_Tome.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Sao_Tome' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Sao_Tome', gmt_offset: [3600, 1616, 0, -2205] diff --git a/src/timezones/Africa/Tripoli.ts b/src/timezones/Africa/Tripoli.ts index 9c33422..dabe7eb 100644 --- a/src/timezones/Africa/Tripoli.ts +++ b/src/timezones/Africa/Tripoli.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Tripoli' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Tripoli', gmt_offset: [7200, 3600, 3164] diff --git a/src/timezones/Africa/Tunis.ts b/src/timezones/Africa/Tunis.ts index f9a6dfb..22a2367 100644 --- a/src/timezones/Africa/Tunis.ts +++ b/src/timezones/Africa/Tunis.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Tunis' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Tunis', gmt_offset: [7200, 3600, 2444, 561] diff --git a/src/timezones/Africa/Windhoek.ts b/src/timezones/Africa/Windhoek.ts index 69c3cdd..f6b6d78 100644 --- a/src/timezones/Africa/Windhoek.ts +++ b/src/timezones/Africa/Windhoek.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Africa/Windhoek' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Africa/Windhoek', gmt_offset: [10800, 7200, 5400, 4104, 3600] diff --git a/src/timezones/America/Adak.ts b/src/timezones/America/Adak.ts index 030530c..1f00a27 100644 --- a/src/timezones/America/Adak.ts +++ b/src/timezones/America/Adak.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Adak' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Adak', gmt_offset: [44002, -32400, -36000, -39600, -42398] diff --git a/src/timezones/America/Anchorage.ts b/src/timezones/America/Anchorage.ts index bce3fcb..3ee383f 100644 --- a/src/timezones/America/Anchorage.ts +++ b/src/timezones/America/Anchorage.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Anchorage' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Anchorage', gmt_offset: [50424, -28800, -32400, -35976, -36000] diff --git a/src/timezones/America/Anguilla.ts b/src/timezones/America/Anguilla.ts index 67432f8..03a9dcb 100644 --- a/src/timezones/America/Anguilla.ts +++ b/src/timezones/America/Anguilla.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Anguilla' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Anguilla', gmt_offset: [-14400, -15136] diff --git a/src/timezones/America/Antigua.ts b/src/timezones/America/Antigua.ts index eb133c3..fd97a37 100644 --- a/src/timezones/America/Antigua.ts +++ b/src/timezones/America/Antigua.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Antigua' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Antigua', gmt_offset: [-14400, -14832, -18000] diff --git a/src/timezones/America/Araguaina.ts b/src/timezones/America/Araguaina.ts index fb3b4f8..1209add 100644 --- a/src/timezones/America/Araguaina.ts +++ b/src/timezones/America/Araguaina.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Araguaina' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Araguaina', gmt_offset: [-7200, -10800, -11568] diff --git a/src/timezones/America/Argentina/Buenos_Aires.ts b/src/timezones/America/Argentina/Buenos_Aires.ts index 6c8befe..bcae210 100644 --- a/src/timezones/America/Argentina/Buenos_Aires.ts +++ b/src/timezones/America/Argentina/Buenos_Aires.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Buenos_Aires' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Buenos_Aires', gmt_offset: [-7200, -10800, -14028, -14400, -15408] diff --git a/src/timezones/America/Argentina/Catamarca.ts b/src/timezones/America/Argentina/Catamarca.ts index 4091df8..526d123 100644 --- a/src/timezones/America/Argentina/Catamarca.ts +++ b/src/timezones/America/Argentina/Catamarca.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Catamarca' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Catamarca', gmt_offset: [-7200, -10800, -14400, -15408, -15788] diff --git a/src/timezones/America/Argentina/Cordoba.ts b/src/timezones/America/Argentina/Cordoba.ts index d8dd892..b34e072 100644 --- a/src/timezones/America/Argentina/Cordoba.ts +++ b/src/timezones/America/Argentina/Cordoba.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Cordoba' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Cordoba', gmt_offset: [-7200, -10800, -14400, -15408] diff --git a/src/timezones/America/Argentina/Jujuy.ts b/src/timezones/America/Argentina/Jujuy.ts index c3e65e8..1f4e015 100644 --- a/src/timezones/America/Argentina/Jujuy.ts +++ b/src/timezones/America/Argentina/Jujuy.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Jujuy' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Jujuy', gmt_offset: [-7200, -10800, -14400, -15408, -15672] diff --git a/src/timezones/America/Argentina/La_Rioja.ts b/src/timezones/America/Argentina/La_Rioja.ts index 17f6068..ab9a3d5 100644 --- a/src/timezones/America/Argentina/La_Rioja.ts +++ b/src/timezones/America/Argentina/La_Rioja.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/La_Rioja' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/La_Rioja', gmt_offset: [-7200, -10800, -14400, -15408, -16044] diff --git a/src/timezones/America/Argentina/Mendoza.ts b/src/timezones/America/Argentina/Mendoza.ts index 8df155a..126891a 100644 --- a/src/timezones/America/Argentina/Mendoza.ts +++ b/src/timezones/America/Argentina/Mendoza.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Mendoza' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Mendoza', gmt_offset: [-7200, -10800, -14400, -15408, -16516] diff --git a/src/timezones/America/Argentina/Rio_Gallegos.ts b/src/timezones/America/Argentina/Rio_Gallegos.ts index 84b2352..d24a784 100644 --- a/src/timezones/America/Argentina/Rio_Gallegos.ts +++ b/src/timezones/America/Argentina/Rio_Gallegos.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Rio_Gallegos' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Rio_Gallegos', gmt_offset: [-7200, -10800, -14400, -15408, -16612] diff --git a/src/timezones/America/Argentina/Salta.ts b/src/timezones/America/Argentina/Salta.ts index 21b47b2..d4c6459 100644 --- a/src/timezones/America/Argentina/Salta.ts +++ b/src/timezones/America/Argentina/Salta.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Salta' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Salta', gmt_offset: [-7200, -10800, -14400, -15408, -15700] diff --git a/src/timezones/America/Argentina/San_Juan.ts b/src/timezones/America/Argentina/San_Juan.ts index 85a71d6..8e01107 100644 --- a/src/timezones/America/Argentina/San_Juan.ts +++ b/src/timezones/America/Argentina/San_Juan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/San_Juan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/San_Juan', gmt_offset: [-7200, -10800, -14400, -15408, -16444] diff --git a/src/timezones/America/Argentina/San_Luis.ts b/src/timezones/America/Argentina/San_Luis.ts index b6c6749..0c3cb8f 100644 --- a/src/timezones/America/Argentina/San_Luis.ts +++ b/src/timezones/America/Argentina/San_Luis.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/San_Luis' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/San_Luis', gmt_offset: [-7200, -10800, -14400, -15408, -15924] diff --git a/src/timezones/America/Argentina/Tucuman.ts b/src/timezones/America/Argentina/Tucuman.ts index 5979702..3f16b27 100644 --- a/src/timezones/America/Argentina/Tucuman.ts +++ b/src/timezones/America/Argentina/Tucuman.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Tucuman' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Tucuman', gmt_offset: [-7200, -10800, -14400, -15408, -15652] diff --git a/src/timezones/America/Argentina/Ushuaia.ts b/src/timezones/America/Argentina/Ushuaia.ts index 0ffa529..132f65e 100644 --- a/src/timezones/America/Argentina/Ushuaia.ts +++ b/src/timezones/America/Argentina/Ushuaia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Argentina/Ushuaia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Argentina/Ushuaia', gmt_offset: [-7200, -10800, -14400, -15408, -16392] diff --git a/src/timezones/America/Aruba.ts b/src/timezones/America/Aruba.ts index 35fdc0d..a12d173 100644 --- a/src/timezones/America/Aruba.ts +++ b/src/timezones/America/Aruba.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Aruba' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Aruba', gmt_offset: [-14400, -16200, -16824] diff --git a/src/timezones/America/Asuncion.ts b/src/timezones/America/Asuncion.ts index 86141b7..631a63a 100644 --- a/src/timezones/America/Asuncion.ts +++ b/src/timezones/America/Asuncion.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Asuncion' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Asuncion', gmt_offset: [-10800, -13840, -14400] diff --git a/src/timezones/America/Atikokan.ts b/src/timezones/America/Atikokan.ts index 9a6c8a9..fe7773a 100644 --- a/src/timezones/America/Atikokan.ts +++ b/src/timezones/America/Atikokan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Atikokan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Atikokan', gmt_offset: [-18000, -21600, -21988] diff --git a/src/timezones/America/Bahia.ts b/src/timezones/America/Bahia.ts index 9c0182f..ae4d668 100644 --- a/src/timezones/America/Bahia.ts +++ b/src/timezones/America/Bahia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Bahia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Bahia', gmt_offset: [-7200, -9244, -10800] diff --git a/src/timezones/America/Bahia_Banderas.ts b/src/timezones/America/Bahia_Banderas.ts index ba07316..bd6850d 100644 --- a/src/timezones/America/Bahia_Banderas.ts +++ b/src/timezones/America/Bahia_Banderas.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Bahia_Banderas' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Bahia_Banderas', gmt_offset: [-18000, -21600, -25200, -25260] diff --git a/src/timezones/America/Barbados.ts b/src/timezones/America/Barbados.ts index 0ab5af4..2aa0a75 100644 --- a/src/timezones/America/Barbados.ts +++ b/src/timezones/America/Barbados.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Barbados' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Barbados', gmt_offset: [-10800, -12600, -14309, -14400] diff --git a/src/timezones/America/Belem.ts b/src/timezones/America/Belem.ts index 8477bff..c141ba7 100644 --- a/src/timezones/America/Belem.ts +++ b/src/timezones/America/Belem.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Belem' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Belem', gmt_offset: [-7200, -10800, -11636] diff --git a/src/timezones/America/Belize.ts b/src/timezones/America/Belize.ts index 67ca0ac..e9bec30 100644 --- a/src/timezones/America/Belize.ts +++ b/src/timezones/America/Belize.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Belize' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Belize', gmt_offset: [-18000, -19800, -21168, -21600] diff --git a/src/timezones/America/Blanc-Sablon.ts b/src/timezones/America/Blanc-Sablon.ts index 21f1a33..676cde3 100644 --- a/src/timezones/America/Blanc-Sablon.ts +++ b/src/timezones/America/Blanc-Sablon.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Blanc-Sablon' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Blanc-Sablon', gmt_offset: [-10800, -13708, -14400] diff --git a/src/timezones/America/Boa_Vista.ts b/src/timezones/America/Boa_Vista.ts index f509fc7..d770521 100644 --- a/src/timezones/America/Boa_Vista.ts +++ b/src/timezones/America/Boa_Vista.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Boa_Vista' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Boa_Vista', gmt_offset: [-10800, -14400, -14560] diff --git a/src/timezones/America/Bogota.ts b/src/timezones/America/Bogota.ts index 9182bd0..44c0658 100644 --- a/src/timezones/America/Bogota.ts +++ b/src/timezones/America/Bogota.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Bogota' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Bogota', gmt_offset: [-14400, -17776, -18000] diff --git a/src/timezones/America/Boise.ts b/src/timezones/America/Boise.ts index 47bb1c5..58cd42b 100644 --- a/src/timezones/America/Boise.ts +++ b/src/timezones/America/Boise.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Boise' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Boise', gmt_offset: [-21600, -25200, -27889, -28800] diff --git a/src/timezones/America/Cambridge_Bay.ts b/src/timezones/America/Cambridge_Bay.ts index 89fc19b..179711c 100644 --- a/src/timezones/America/Cambridge_Bay.ts +++ b/src/timezones/America/Cambridge_Bay.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Cambridge_Bay' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Cambridge_Bay', gmt_offset: [0, -18000, -21600, -25200] diff --git a/src/timezones/America/Campo_Grande.ts b/src/timezones/America/Campo_Grande.ts index 83826b1..52bed2e 100644 --- a/src/timezones/America/Campo_Grande.ts +++ b/src/timezones/America/Campo_Grande.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Campo_Grande' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Campo_Grande', gmt_offset: [-10800, -13108, -14400] diff --git a/src/timezones/America/Cancun.ts b/src/timezones/America/Cancun.ts index 6cabc7e..23f0612 100644 --- a/src/timezones/America/Cancun.ts +++ b/src/timezones/America/Cancun.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Cancun' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Cancun', gmt_offset: [-14400, -18000, -20824, -21600] diff --git a/src/timezones/America/Caracas.ts b/src/timezones/America/Caracas.ts index cf16b41..66996ab 100644 --- a/src/timezones/America/Caracas.ts +++ b/src/timezones/America/Caracas.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Caracas' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Caracas', gmt_offset: [-14400, -16060, -16064, -16200] diff --git a/src/timezones/America/Cayenne.ts b/src/timezones/America/Cayenne.ts index c2a72b1..2f1c160 100644 --- a/src/timezones/America/Cayenne.ts +++ b/src/timezones/America/Cayenne.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Cayenne' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Cayenne', gmt_offset: [-10800, -12560, -14400] diff --git a/src/timezones/America/Cayman.ts b/src/timezones/America/Cayman.ts index ac1f5e8..ee8315d 100644 --- a/src/timezones/America/Cayman.ts +++ b/src/timezones/America/Cayman.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Cayman' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Cayman', gmt_offset: [-18000, -18430, -19532] diff --git a/src/timezones/America/Chicago.ts b/src/timezones/America/Chicago.ts index 875b5fe..ad3cf5e 100644 --- a/src/timezones/America/Chicago.ts +++ b/src/timezones/America/Chicago.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Chicago' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Chicago', gmt_offset: [-18000, -21036, -21600] diff --git a/src/timezones/America/Chihuahua.ts b/src/timezones/America/Chihuahua.ts index c080236..cad12d9 100644 --- a/src/timezones/America/Chihuahua.ts +++ b/src/timezones/America/Chihuahua.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Chihuahua' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Chihuahua', gmt_offset: [-18000, -21600, -25200, -25460] diff --git a/src/timezones/America/Ciudad_Juarez.ts b/src/timezones/America/Ciudad_Juarez.ts index 126aad6..d64721e 100644 --- a/src/timezones/America/Ciudad_Juarez.ts +++ b/src/timezones/America/Ciudad_Juarez.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Ciudad_Juarez' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Ciudad_Juarez', gmt_offset: [-18000, -21600, -25200, -25556] diff --git a/src/timezones/America/Costa_Rica.ts b/src/timezones/America/Costa_Rica.ts index 114b536..3c70676 100644 --- a/src/timezones/America/Costa_Rica.ts +++ b/src/timezones/America/Costa_Rica.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Costa_Rica' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Costa_Rica', gmt_offset: [-18000, -20173, -21600] diff --git a/src/timezones/America/Coyhaique.ts b/src/timezones/America/Coyhaique.ts index d976bb7..b5ec81d 100644 --- a/src/timezones/America/Coyhaique.ts +++ b/src/timezones/America/Coyhaique.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Coyhaique' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Coyhaique', gmt_offset: [-10800, -14400, -16965, -17296, -18000] diff --git a/src/timezones/America/Creston.ts b/src/timezones/America/Creston.ts index bf21158..2c26f1e 100644 --- a/src/timezones/America/Creston.ts +++ b/src/timezones/America/Creston.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Creston' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Creston', gmt_offset: [-25200, -27964, -28800] diff --git a/src/timezones/America/Cuiaba.ts b/src/timezones/America/Cuiaba.ts index 52b35f8..d9dba75 100644 --- a/src/timezones/America/Cuiaba.ts +++ b/src/timezones/America/Cuiaba.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Cuiaba' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Cuiaba', gmt_offset: [-10800, -13460, -14400] diff --git a/src/timezones/America/Curacao.ts b/src/timezones/America/Curacao.ts index 65c2aca..213056f 100644 --- a/src/timezones/America/Curacao.ts +++ b/src/timezones/America/Curacao.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Curacao' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Curacao', gmt_offset: [-14400, -16200, -16547] diff --git a/src/timezones/America/Danmarkshavn.ts b/src/timezones/America/Danmarkshavn.ts index 5f5bfa7..aac454e 100644 --- a/src/timezones/America/Danmarkshavn.ts +++ b/src/timezones/America/Danmarkshavn.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Danmarkshavn' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Danmarkshavn', gmt_offset: [0, -4480, -7200, -10800] diff --git a/src/timezones/America/Dawson.ts b/src/timezones/America/Dawson.ts index 37dc80a..0035427 100644 --- a/src/timezones/America/Dawson.ts +++ b/src/timezones/America/Dawson.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Dawson' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Dawson', gmt_offset: [-25200, -28800, -32400, -33460] diff --git a/src/timezones/America/Dawson_Creek.ts b/src/timezones/America/Dawson_Creek.ts index 6687c2b..2c96318 100644 --- a/src/timezones/America/Dawson_Creek.ts +++ b/src/timezones/America/Dawson_Creek.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Dawson_Creek' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Dawson_Creek', gmt_offset: [-25200, -28800, -28856] diff --git a/src/timezones/America/Denver.ts b/src/timezones/America/Denver.ts index e24de56..7cd3bbc 100644 --- a/src/timezones/America/Denver.ts +++ b/src/timezones/America/Denver.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Denver' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Denver', gmt_offset: [-21600, -25196, -25200] diff --git a/src/timezones/America/Detroit.ts b/src/timezones/America/Detroit.ts index f26fb07..945eb27 100644 --- a/src/timezones/America/Detroit.ts +++ b/src/timezones/America/Detroit.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Detroit' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Detroit', gmt_offset: [-14400, -18000, -19931, -21600] diff --git a/src/timezones/America/Dominica.ts b/src/timezones/America/Dominica.ts index 50b8a48..405d7f4 100644 --- a/src/timezones/America/Dominica.ts +++ b/src/timezones/America/Dominica.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Dominica' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Dominica', gmt_offset: [-14400, -14736] diff --git a/src/timezones/America/Edmonton.ts b/src/timezones/America/Edmonton.ts index 3211721..f66e4aa 100644 --- a/src/timezones/America/Edmonton.ts +++ b/src/timezones/America/Edmonton.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Edmonton' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Edmonton', gmt_offset: [-21600, -25200, -27232] diff --git a/src/timezones/America/Eirunepe.ts b/src/timezones/America/Eirunepe.ts index 6850bd5..feb1d88 100644 --- a/src/timezones/America/Eirunepe.ts +++ b/src/timezones/America/Eirunepe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Eirunepe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Eirunepe', gmt_offset: [-14400, -16768, -18000] diff --git a/src/timezones/America/El_Salvador.ts b/src/timezones/America/El_Salvador.ts index 3fdfb57..47b2b8c 100644 --- a/src/timezones/America/El_Salvador.ts +++ b/src/timezones/America/El_Salvador.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/El_Salvador' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/El_Salvador', gmt_offset: [-18000, -21408, -21600] diff --git a/src/timezones/America/Fort_Nelson.ts b/src/timezones/America/Fort_Nelson.ts index 6479125..2780bf6 100644 --- a/src/timezones/America/Fort_Nelson.ts +++ b/src/timezones/America/Fort_Nelson.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Fort_Nelson' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Fort_Nelson', gmt_offset: [-25200, -28800, -29447] diff --git a/src/timezones/America/Fortaleza.ts b/src/timezones/America/Fortaleza.ts index aba5ce6..9be3591 100644 --- a/src/timezones/America/Fortaleza.ts +++ b/src/timezones/America/Fortaleza.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Fortaleza' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Fortaleza', gmt_offset: [-7200, -9240, -10800] diff --git a/src/timezones/America/Glace_Bay.ts b/src/timezones/America/Glace_Bay.ts index 6c2a861..64aec15 100644 --- a/src/timezones/America/Glace_Bay.ts +++ b/src/timezones/America/Glace_Bay.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Glace_Bay' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Glace_Bay', gmt_offset: [-10800, -14388, -14400] diff --git a/src/timezones/America/Goose_Bay.ts b/src/timezones/America/Goose_Bay.ts index c947120..664d439 100644 --- a/src/timezones/America/Goose_Bay.ts +++ b/src/timezones/America/Goose_Bay.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Goose_Bay' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Goose_Bay', gmt_offset: [-7200, -9000, -9052, -10800, -12600, -12652, -14400, -14500] diff --git a/src/timezones/America/Grand_Turk.ts b/src/timezones/America/Grand_Turk.ts index b49159b..de49f75 100644 --- a/src/timezones/America/Grand_Turk.ts +++ b/src/timezones/America/Grand_Turk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Grand_Turk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Grand_Turk', gmt_offset: [-14400, -17072, -18000, -18430] diff --git a/src/timezones/America/Grenada.ts b/src/timezones/America/Grenada.ts index 04d4aba..060c7bd 100644 --- a/src/timezones/America/Grenada.ts +++ b/src/timezones/America/Grenada.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Grenada' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Grenada', gmt_offset: [-14400, -14820] diff --git a/src/timezones/America/Guadeloupe.ts b/src/timezones/America/Guadeloupe.ts index 6c22fe6..02dccdf 100644 --- a/src/timezones/America/Guadeloupe.ts +++ b/src/timezones/America/Guadeloupe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Guadeloupe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Guadeloupe', gmt_offset: [-14400, -14768] diff --git a/src/timezones/America/Guatemala.ts b/src/timezones/America/Guatemala.ts index aae9061..e97707c 100644 --- a/src/timezones/America/Guatemala.ts +++ b/src/timezones/America/Guatemala.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Guatemala' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Guatemala', gmt_offset: [-18000, -21600, -21724] diff --git a/src/timezones/America/Guayaquil.ts b/src/timezones/America/Guayaquil.ts index 527f91e..3f593b4 100644 --- a/src/timezones/America/Guayaquil.ts +++ b/src/timezones/America/Guayaquil.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Guayaquil' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Guayaquil', gmt_offset: [-14400, -18000, -18840, -19160] diff --git a/src/timezones/America/Guyana.ts b/src/timezones/America/Guyana.ts index ab59dd3..8d386e6 100644 --- a/src/timezones/America/Guyana.ts +++ b/src/timezones/America/Guyana.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Guyana' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Guyana', gmt_offset: [-10800, -13500, -13959, -14400] diff --git a/src/timezones/America/Halifax.ts b/src/timezones/America/Halifax.ts index dac2942..4e2afb6 100644 --- a/src/timezones/America/Halifax.ts +++ b/src/timezones/America/Halifax.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Halifax' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Halifax', gmt_offset: [-10800, -14400, -15264] diff --git a/src/timezones/America/Havana.ts b/src/timezones/America/Havana.ts index 12eaf06..3b80874 100644 --- a/src/timezones/America/Havana.ts +++ b/src/timezones/America/Havana.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Havana' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Havana', gmt_offset: [-14400, -18000, -19768, -19776] diff --git a/src/timezones/America/Hermosillo.ts b/src/timezones/America/Hermosillo.ts index 6a7983f..13b371c 100644 --- a/src/timezones/America/Hermosillo.ts +++ b/src/timezones/America/Hermosillo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Hermosillo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Hermosillo', gmt_offset: [-21600, -25200, -26632] diff --git a/src/timezones/America/Indiana/Indianapolis.ts b/src/timezones/America/Indiana/Indianapolis.ts index 8aba017..10f2908 100644 --- a/src/timezones/America/Indiana/Indianapolis.ts +++ b/src/timezones/America/Indiana/Indianapolis.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Indianapolis' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Indianapolis', gmt_offset: [-14400, -18000, -20678, -21600] diff --git a/src/timezones/America/Indiana/Knox.ts b/src/timezones/America/Indiana/Knox.ts index 9341060..cf2a3da 100644 --- a/src/timezones/America/Indiana/Knox.ts +++ b/src/timezones/America/Indiana/Knox.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Knox' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Knox', gmt_offset: [-18000, -20790, -21600] diff --git a/src/timezones/America/Indiana/Marengo.ts b/src/timezones/America/Indiana/Marengo.ts index ca99813..bad66b4 100644 --- a/src/timezones/America/Indiana/Marengo.ts +++ b/src/timezones/America/Indiana/Marengo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Marengo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Marengo', gmt_offset: [-14400, -18000, -20723, -21600] diff --git a/src/timezones/America/Indiana/Petersburg.ts b/src/timezones/America/Indiana/Petersburg.ts index 11c9b09..5c13b78 100644 --- a/src/timezones/America/Indiana/Petersburg.ts +++ b/src/timezones/America/Indiana/Petersburg.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Petersburg' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Petersburg', gmt_offset: [-14400, -18000, -20947, -21600] diff --git a/src/timezones/America/Indiana/Tell_City.ts b/src/timezones/America/Indiana/Tell_City.ts index ae43ead..04bedfe 100644 --- a/src/timezones/America/Indiana/Tell_City.ts +++ b/src/timezones/America/Indiana/Tell_City.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Tell_City' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Tell_City', gmt_offset: [-14400, -18000, -20823, -21600] diff --git a/src/timezones/America/Indiana/Vevay.ts b/src/timezones/America/Indiana/Vevay.ts index bcf0dd1..d720ed0 100644 --- a/src/timezones/America/Indiana/Vevay.ts +++ b/src/timezones/America/Indiana/Vevay.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Vevay' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Vevay', gmt_offset: [-14400, -18000, -20416, -21600] diff --git a/src/timezones/America/Indiana/Vincennes.ts b/src/timezones/America/Indiana/Vincennes.ts index de002b5..844f8b8 100644 --- a/src/timezones/America/Indiana/Vincennes.ts +++ b/src/timezones/America/Indiana/Vincennes.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Vincennes' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Vincennes', gmt_offset: [-14400, -18000, -21007, -21600] diff --git a/src/timezones/America/Indiana/Winamac.ts b/src/timezones/America/Indiana/Winamac.ts index 2cfac95..7e642d1 100644 --- a/src/timezones/America/Indiana/Winamac.ts +++ b/src/timezones/America/Indiana/Winamac.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Indiana/Winamac' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Indiana/Winamac', gmt_offset: [-14400, -18000, -20785, -21600] diff --git a/src/timezones/America/Inuvik.ts b/src/timezones/America/Inuvik.ts index 414d935..9ba41b1 100644 --- a/src/timezones/America/Inuvik.ts +++ b/src/timezones/America/Inuvik.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Inuvik' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Inuvik', gmt_offset: [0, -21600, -25200, -28800] diff --git a/src/timezones/America/Iqaluit.ts b/src/timezones/America/Iqaluit.ts index f6a7d90..fc3df04 100644 --- a/src/timezones/America/Iqaluit.ts +++ b/src/timezones/America/Iqaluit.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Iqaluit' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Iqaluit', gmt_offset: [0, -14400, -18000, -21600] diff --git a/src/timezones/America/Jamaica.ts b/src/timezones/America/Jamaica.ts index a6a8d52..ec81a4d 100644 --- a/src/timezones/America/Jamaica.ts +++ b/src/timezones/America/Jamaica.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Jamaica' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Jamaica', gmt_offset: [-14400, -18000, -18430] diff --git a/src/timezones/America/Juneau.ts b/src/timezones/America/Juneau.ts index f226114..a0ef185 100644 --- a/src/timezones/America/Juneau.ts +++ b/src/timezones/America/Juneau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Juneau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Juneau', gmt_offset: [54139, -25200, -28800, -32261, -32400] diff --git a/src/timezones/America/Kentucky/Louisville.ts b/src/timezones/America/Kentucky/Louisville.ts index 477d173..6ae9baa 100644 --- a/src/timezones/America/Kentucky/Louisville.ts +++ b/src/timezones/America/Kentucky/Louisville.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Kentucky/Louisville' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Kentucky/Louisville', gmt_offset: [-14400, -18000, -20582, -21600] diff --git a/src/timezones/America/Kentucky/Monticello.ts b/src/timezones/America/Kentucky/Monticello.ts index 29aff2a..7dd48fd 100644 --- a/src/timezones/America/Kentucky/Monticello.ts +++ b/src/timezones/America/Kentucky/Monticello.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Kentucky/Monticello' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Kentucky/Monticello', gmt_offset: [-14400, -18000, -20364, -21600] diff --git a/src/timezones/America/Kralendijk.ts b/src/timezones/America/Kralendijk.ts index 95956ae..301d039 100644 --- a/src/timezones/America/Kralendijk.ts +++ b/src/timezones/America/Kralendijk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Kralendijk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Kralendijk', gmt_offset: [-10800, -14400, -15865] diff --git a/src/timezones/America/La_Paz.ts b/src/timezones/America/La_Paz.ts index f563af4..064565c 100644 --- a/src/timezones/America/La_Paz.ts +++ b/src/timezones/America/La_Paz.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/La_Paz' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/La_Paz', gmt_offset: [-12756, -14400, -16356] diff --git a/src/timezones/America/Lima.ts b/src/timezones/America/Lima.ts index 4a41754..20d0056 100644 --- a/src/timezones/America/Lima.ts +++ b/src/timezones/America/Lima.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Lima' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Lima', gmt_offset: [-14400, -18000, -18492, -18516] diff --git a/src/timezones/America/Los_Angeles.ts b/src/timezones/America/Los_Angeles.ts index df7bcc6..8301a57 100644 --- a/src/timezones/America/Los_Angeles.ts +++ b/src/timezones/America/Los_Angeles.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Los_Angeles' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Los_Angeles', gmt_offset: [-25200, -28378, -28800] diff --git a/src/timezones/America/Lower_Princes.ts b/src/timezones/America/Lower_Princes.ts index 0514fa7..1f72bbd 100644 --- a/src/timezones/America/Lower_Princes.ts +++ b/src/timezones/America/Lower_Princes.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Lower_Princes' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Lower_Princes', gmt_offset: [-10800, -14400, -15865] diff --git a/src/timezones/America/Maceio.ts b/src/timezones/America/Maceio.ts index f95e10d..65ebdc8 100644 --- a/src/timezones/America/Maceio.ts +++ b/src/timezones/America/Maceio.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Maceio' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Maceio', gmt_offset: [-7200, -8572, -10800] diff --git a/src/timezones/America/Managua.ts b/src/timezones/America/Managua.ts index a08b2eb..3629f81 100644 --- a/src/timezones/America/Managua.ts +++ b/src/timezones/America/Managua.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Managua' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Managua', gmt_offset: [-18000, -20708, -20712, -21600] diff --git a/src/timezones/America/Manaus.ts b/src/timezones/America/Manaus.ts index cf6ec6b..23096b6 100644 --- a/src/timezones/America/Manaus.ts +++ b/src/timezones/America/Manaus.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Manaus' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Manaus', gmt_offset: [-10800, -14400, -14404] diff --git a/src/timezones/America/Marigot.ts b/src/timezones/America/Marigot.ts index e1c68bb..b6a6d2c 100644 --- a/src/timezones/America/Marigot.ts +++ b/src/timezones/America/Marigot.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Marigot' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Marigot', gmt_offset: [-10800, -14400, -15865] diff --git a/src/timezones/America/Martinique.ts b/src/timezones/America/Martinique.ts index 277fd16..6daf354 100644 --- a/src/timezones/America/Martinique.ts +++ b/src/timezones/America/Martinique.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Martinique' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Martinique', gmt_offset: [-10800, -14400, -14660] diff --git a/src/timezones/America/Matamoros.ts b/src/timezones/America/Matamoros.ts index 10d3c1c..cb63e93 100644 --- a/src/timezones/America/Matamoros.ts +++ b/src/timezones/America/Matamoros.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Matamoros' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Matamoros', gmt_offset: [-18000, -21600, -23400] diff --git a/src/timezones/America/Mazatlan.ts b/src/timezones/America/Mazatlan.ts index 36c3897..c4f88b5 100644 --- a/src/timezones/America/Mazatlan.ts +++ b/src/timezones/America/Mazatlan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Mazatlan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Mazatlan', gmt_offset: [-21600, -25200, -25540] diff --git a/src/timezones/America/Menominee.ts b/src/timezones/America/Menominee.ts index c514437..952cbd7 100644 --- a/src/timezones/America/Menominee.ts +++ b/src/timezones/America/Menominee.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Menominee' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Menominee', gmt_offset: [-18000, -21027, -21600] diff --git a/src/timezones/America/Merida.ts b/src/timezones/America/Merida.ts index 87e59b3..4bc812c 100644 --- a/src/timezones/America/Merida.ts +++ b/src/timezones/America/Merida.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Merida' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Merida', gmt_offset: [-18000, -21508, -21600] diff --git a/src/timezones/America/Metlakatla.ts b/src/timezones/America/Metlakatla.ts index 148b31b..18d3b59 100644 --- a/src/timezones/America/Metlakatla.ts +++ b/src/timezones/America/Metlakatla.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Metlakatla' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Metlakatla', gmt_offset: [54822, -25200, -28800, -31578, -32400] diff --git a/src/timezones/America/Mexico_City.ts b/src/timezones/America/Mexico_City.ts index 8c2afea..1250ba2 100644 --- a/src/timezones/America/Mexico_City.ts +++ b/src/timezones/America/Mexico_City.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Mexico_City' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Mexico_City', gmt_offset: [-18000, -21600, -23796, -25200] diff --git a/src/timezones/America/Miquelon.ts b/src/timezones/America/Miquelon.ts index a337aef..cb55783 100644 --- a/src/timezones/America/Miquelon.ts +++ b/src/timezones/America/Miquelon.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Miquelon' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Miquelon', gmt_offset: [-7200, -10800, -13480, -14400] diff --git a/src/timezones/America/Moncton.ts b/src/timezones/America/Moncton.ts index ff6b049..4cfd1b2 100644 --- a/src/timezones/America/Moncton.ts +++ b/src/timezones/America/Moncton.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Moncton' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Moncton', gmt_offset: [-10800, -14400, -15548, -18000] diff --git a/src/timezones/America/Monterrey.ts b/src/timezones/America/Monterrey.ts index 0ba17c0..f44554f 100644 --- a/src/timezones/America/Monterrey.ts +++ b/src/timezones/America/Monterrey.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Monterrey' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Monterrey', gmt_offset: [-18000, -21600, -24076, -25200] diff --git a/src/timezones/America/Montevideo.ts b/src/timezones/America/Montevideo.ts index 1e730f9..5132dbf 100644 --- a/src/timezones/America/Montevideo.ts +++ b/src/timezones/America/Montevideo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Montevideo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Montevideo', gmt_offset: [-5400, -7200, -9000, -10800, -12600, -13491, -14400] diff --git a/src/timezones/America/Montserrat.ts b/src/timezones/America/Montserrat.ts index 5b79f5a..e6f9451 100644 --- a/src/timezones/America/Montserrat.ts +++ b/src/timezones/America/Montserrat.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Montserrat' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Montserrat', gmt_offset: [-14400, -14932] diff --git a/src/timezones/America/Nassau.ts b/src/timezones/America/Nassau.ts index a1c4f86..6d2cab1 100644 --- a/src/timezones/America/Nassau.ts +++ b/src/timezones/America/Nassau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Nassau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Nassau', gmt_offset: [-14400, -18000, -18570] diff --git a/src/timezones/America/New_York.ts b/src/timezones/America/New_York.ts index ad28e99..0b53c49 100644 --- a/src/timezones/America/New_York.ts +++ b/src/timezones/America/New_York.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/New_York' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/New_York', gmt_offset: [-14400, -17762, -18000] diff --git a/src/timezones/America/Nome.ts b/src/timezones/America/Nome.ts index 804d2ac..eb869e6 100644 --- a/src/timezones/America/Nome.ts +++ b/src/timezones/America/Nome.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Nome' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Nome', gmt_offset: [46702, -28800, -32400, -36000, -39600, -39698] diff --git a/src/timezones/America/Noronha.ts b/src/timezones/America/Noronha.ts index d288529..76083a1 100644 --- a/src/timezones/America/Noronha.ts +++ b/src/timezones/America/Noronha.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Noronha' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Noronha', gmt_offset: [-3600, -7200, -7780] diff --git a/src/timezones/America/North_Dakota/Beulah.ts b/src/timezones/America/North_Dakota/Beulah.ts index 146db10..f78cdbe 100644 --- a/src/timezones/America/North_Dakota/Beulah.ts +++ b/src/timezones/America/North_Dakota/Beulah.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/North_Dakota/Beulah' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/North_Dakota/Beulah', gmt_offset: [-18000, -21600, -24427, -25200] diff --git a/src/timezones/America/North_Dakota/Center.ts b/src/timezones/America/North_Dakota/Center.ts index dde4f84..6b0086d 100644 --- a/src/timezones/America/North_Dakota/Center.ts +++ b/src/timezones/America/North_Dakota/Center.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/North_Dakota/Center' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/North_Dakota/Center', gmt_offset: [-18000, -21600, -24312, -25200] diff --git a/src/timezones/America/North_Dakota/New_Salem.ts b/src/timezones/America/North_Dakota/New_Salem.ts index 802fc59..82d17fc 100644 --- a/src/timezones/America/North_Dakota/New_Salem.ts +++ b/src/timezones/America/North_Dakota/New_Salem.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/North_Dakota/New_Salem' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/North_Dakota/New_Salem', gmt_offset: [-18000, -21600, -24339, -25200] diff --git a/src/timezones/America/Nuuk.ts b/src/timezones/America/Nuuk.ts index 0c1bf08..a2df30f 100644 --- a/src/timezones/America/Nuuk.ts +++ b/src/timezones/America/Nuuk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Nuuk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Nuuk', gmt_offset: [-3600, -7200, -10800, -12416] diff --git a/src/timezones/America/Ojinaga.ts b/src/timezones/America/Ojinaga.ts index cae6a50..f471d79 100644 --- a/src/timezones/America/Ojinaga.ts +++ b/src/timezones/America/Ojinaga.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Ojinaga' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Ojinaga', gmt_offset: [-18000, -21600, -25060, -25200] diff --git a/src/timezones/America/Panama.ts b/src/timezones/America/Panama.ts index 79e1619..ca0f355 100644 --- a/src/timezones/America/Panama.ts +++ b/src/timezones/America/Panama.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Panama' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Panama', gmt_offset: [-18000, -19088, -19176] diff --git a/src/timezones/America/Paramaribo.ts b/src/timezones/America/Paramaribo.ts index 1aa5fc2..6753e2f 100644 --- a/src/timezones/America/Paramaribo.ts +++ b/src/timezones/America/Paramaribo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Paramaribo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Paramaribo', gmt_offset: [-10800, -12600, -13236, -13240, -13252] diff --git a/src/timezones/America/Phoenix.ts b/src/timezones/America/Phoenix.ts index c55a93f..efe8541 100644 --- a/src/timezones/America/Phoenix.ts +++ b/src/timezones/America/Phoenix.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Phoenix' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Phoenix', gmt_offset: [-21600, -25200, -26898] diff --git a/src/timezones/America/Port-au-Prince.ts b/src/timezones/America/Port-au-Prince.ts index f8d84bc..d3fc086 100644 --- a/src/timezones/America/Port-au-Prince.ts +++ b/src/timezones/America/Port-au-Prince.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Port-au-Prince' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Port-au-Prince', gmt_offset: [-14400, -17340, -17360, -18000] diff --git a/src/timezones/America/Port_of_Spain.ts b/src/timezones/America/Port_of_Spain.ts index 295064d..b1829f1 100644 --- a/src/timezones/America/Port_of_Spain.ts +++ b/src/timezones/America/Port_of_Spain.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Port_of_Spain' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Port_of_Spain', gmt_offset: [-14400, -14764] diff --git a/src/timezones/America/Porto_Velho.ts b/src/timezones/America/Porto_Velho.ts index 102dcd8..8217bb9 100644 --- a/src/timezones/America/Porto_Velho.ts +++ b/src/timezones/America/Porto_Velho.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Porto_Velho' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Porto_Velho', gmt_offset: [-10800, -14400, -15336] diff --git a/src/timezones/America/Puerto_Rico.ts b/src/timezones/America/Puerto_Rico.ts index aad34dd..da54dca 100644 --- a/src/timezones/America/Puerto_Rico.ts +++ b/src/timezones/America/Puerto_Rico.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Puerto_Rico' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Puerto_Rico', gmt_offset: [-10800, -14400, -15865] diff --git a/src/timezones/America/Punta_Arenas.ts b/src/timezones/America/Punta_Arenas.ts index ccff195..91675d1 100644 --- a/src/timezones/America/Punta_Arenas.ts +++ b/src/timezones/America/Punta_Arenas.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Punta_Arenas' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Punta_Arenas', gmt_offset: [-10800, -14400, -16965, -17020, -18000] diff --git a/src/timezones/America/Rankin_Inlet.ts b/src/timezones/America/Rankin_Inlet.ts index a463487..fbdd4d8 100644 --- a/src/timezones/America/Rankin_Inlet.ts +++ b/src/timezones/America/Rankin_Inlet.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Rankin_Inlet' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Rankin_Inlet', gmt_offset: [0, -18000, -21600] diff --git a/src/timezones/America/Recife.ts b/src/timezones/America/Recife.ts index f4dfc21..48a5b36 100644 --- a/src/timezones/America/Recife.ts +++ b/src/timezones/America/Recife.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Recife' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Recife', gmt_offset: [-7200, -8376, -10800] diff --git a/src/timezones/America/Regina.ts b/src/timezones/America/Regina.ts index eb20cc2..f576c98 100644 --- a/src/timezones/America/Regina.ts +++ b/src/timezones/America/Regina.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Regina' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Regina', gmt_offset: [-21600, -25116, -25200] diff --git a/src/timezones/America/Resolute.ts b/src/timezones/America/Resolute.ts index 9c1f49f..d2631a2 100644 --- a/src/timezones/America/Resolute.ts +++ b/src/timezones/America/Resolute.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Resolute' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Resolute', gmt_offset: [0, -18000, -21600] diff --git a/src/timezones/America/Rio_Branco.ts b/src/timezones/America/Rio_Branco.ts index 4d0f698..3407038 100644 --- a/src/timezones/America/Rio_Branco.ts +++ b/src/timezones/America/Rio_Branco.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Rio_Branco' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Rio_Branco', gmt_offset: [-14400, -16272, -18000] diff --git a/src/timezones/America/Santarem.ts b/src/timezones/America/Santarem.ts index 8d33ff2..b51210d 100644 --- a/src/timezones/America/Santarem.ts +++ b/src/timezones/America/Santarem.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Santarem' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Santarem', gmt_offset: [-10800, -13128, -14400] diff --git a/src/timezones/America/Santiago.ts b/src/timezones/America/Santiago.ts index f928ab8..c3789be 100644 --- a/src/timezones/America/Santiago.ts +++ b/src/timezones/America/Santiago.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Santiago' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Santiago', gmt_offset: [-10800, -14400, -16965, -18000] diff --git a/src/timezones/America/Santo_Domingo.ts b/src/timezones/America/Santo_Domingo.ts index 84e3b91..2c61fbf 100644 --- a/src/timezones/America/Santo_Domingo.ts +++ b/src/timezones/America/Santo_Domingo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Santo_Domingo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Santo_Domingo', gmt_offset: [-14400, -16200, -16776, -16800, -18000] diff --git a/src/timezones/America/Sao_Paulo.ts b/src/timezones/America/Sao_Paulo.ts index 2e97f70..cb451be 100644 --- a/src/timezones/America/Sao_Paulo.ts +++ b/src/timezones/America/Sao_Paulo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Sao_Paulo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Sao_Paulo', gmt_offset: [-7200, -10800, -11188] diff --git a/src/timezones/America/Scoresbysund.ts b/src/timezones/America/Scoresbysund.ts index 46e73a9..d9a2bc4 100644 --- a/src/timezones/America/Scoresbysund.ts +++ b/src/timezones/America/Scoresbysund.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Scoresbysund' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Scoresbysund', gmt_offset: [0, -3600, -5272, -7200] diff --git a/src/timezones/America/Sitka.ts b/src/timezones/America/Sitka.ts index a31c702..56d2036 100644 --- a/src/timezones/America/Sitka.ts +++ b/src/timezones/America/Sitka.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Sitka' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Sitka', gmt_offset: [53927, -25200, -28800, -32400, -32473] diff --git a/src/timezones/America/St_Barthelemy.ts b/src/timezones/America/St_Barthelemy.ts index caedacb..ec2ae23 100644 --- a/src/timezones/America/St_Barthelemy.ts +++ b/src/timezones/America/St_Barthelemy.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/St_Barthelemy' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/St_Barthelemy', gmt_offset: [-10800, -14400, -15865] diff --git a/src/timezones/America/St_Johns.ts b/src/timezones/America/St_Johns.ts index 21ed6cb..4a9aa21 100644 --- a/src/timezones/America/St_Johns.ts +++ b/src/timezones/America/St_Johns.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/St_Johns' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/St_Johns', gmt_offset: [-5400, -9000, -9052, -12600, -12652] diff --git a/src/timezones/America/St_Kitts.ts b/src/timezones/America/St_Kitts.ts index 3fca9ba..dfc25b2 100644 --- a/src/timezones/America/St_Kitts.ts +++ b/src/timezones/America/St_Kitts.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/St_Kitts' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/St_Kitts', gmt_offset: [-14400, -15052] diff --git a/src/timezones/America/St_Lucia.ts b/src/timezones/America/St_Lucia.ts index 68cd083..e7db5e8 100644 --- a/src/timezones/America/St_Lucia.ts +++ b/src/timezones/America/St_Lucia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/St_Lucia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/St_Lucia', gmt_offset: [-14400, -14640] diff --git a/src/timezones/America/St_Thomas.ts b/src/timezones/America/St_Thomas.ts index 7747f4a..6310a44 100644 --- a/src/timezones/America/St_Thomas.ts +++ b/src/timezones/America/St_Thomas.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/St_Thomas' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/St_Thomas', gmt_offset: [-14400, -15584] diff --git a/src/timezones/America/St_Vincent.ts b/src/timezones/America/St_Vincent.ts index 42dd7e1..fb6206b 100644 --- a/src/timezones/America/St_Vincent.ts +++ b/src/timezones/America/St_Vincent.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/St_Vincent' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/St_Vincent', gmt_offset: [-14400, -14696] diff --git a/src/timezones/America/Swift_Current.ts b/src/timezones/America/Swift_Current.ts index 198682d..e32515d 100644 --- a/src/timezones/America/Swift_Current.ts +++ b/src/timezones/America/Swift_Current.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Swift_Current' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Swift_Current', gmt_offset: [-21600, -25200, -25880] diff --git a/src/timezones/America/Tegucigalpa.ts b/src/timezones/America/Tegucigalpa.ts index 70e0873..0bab8c9 100644 --- a/src/timezones/America/Tegucigalpa.ts +++ b/src/timezones/America/Tegucigalpa.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Tegucigalpa' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Tegucigalpa', gmt_offset: [-18000, -20932, -21600] diff --git a/src/timezones/America/Thule.ts b/src/timezones/America/Thule.ts index a3ab3ff..6bdb310 100644 --- a/src/timezones/America/Thule.ts +++ b/src/timezones/America/Thule.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Thule' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Thule', gmt_offset: [-10800, -14400, -16508] diff --git a/src/timezones/America/Tijuana.ts b/src/timezones/America/Tijuana.ts index cca2f37..94ea00b 100644 --- a/src/timezones/America/Tijuana.ts +++ b/src/timezones/America/Tijuana.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Tijuana' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Tijuana', gmt_offset: [-25200, -28084, -28800] diff --git a/src/timezones/America/Toronto.ts b/src/timezones/America/Toronto.ts index a1e7bc1..48bd6c3 100644 --- a/src/timezones/America/Toronto.ts +++ b/src/timezones/America/Toronto.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Toronto' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Toronto', gmt_offset: [-14400, -18000, -19052] diff --git a/src/timezones/America/Tortola.ts b/src/timezones/America/Tortola.ts index 29a2b0f..0663e2d 100644 --- a/src/timezones/America/Tortola.ts +++ b/src/timezones/America/Tortola.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Tortola' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Tortola', gmt_offset: [-14400, -15508] diff --git a/src/timezones/America/Vancouver.ts b/src/timezones/America/Vancouver.ts index 82edcc4..9159515 100644 --- a/src/timezones/America/Vancouver.ts +++ b/src/timezones/America/Vancouver.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Vancouver' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Vancouver', gmt_offset: [-25200, -28800, -29548] diff --git a/src/timezones/America/Whitehorse.ts b/src/timezones/America/Whitehorse.ts index 93cd32a..9898bd4 100644 --- a/src/timezones/America/Whitehorse.ts +++ b/src/timezones/America/Whitehorse.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Whitehorse' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Whitehorse', gmt_offset: [-25200, -28800, -32400, -32412] diff --git a/src/timezones/America/Winnipeg.ts b/src/timezones/America/Winnipeg.ts index 21dc79a..9801c87 100644 --- a/src/timezones/America/Winnipeg.ts +++ b/src/timezones/America/Winnipeg.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Winnipeg' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Winnipeg', gmt_offset: [-18000, -21600, -23316] diff --git a/src/timezones/America/Yakutat.ts b/src/timezones/America/Yakutat.ts index 1db0dcd..f532bed 100644 --- a/src/timezones/America/Yakutat.ts +++ b/src/timezones/America/Yakutat.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'America/Yakutat' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'America/Yakutat', gmt_offset: [52865, -28800, -32400, -33535] diff --git a/src/timezones/Antarctica/Casey.ts b/src/timezones/Antarctica/Casey.ts index f2c94d6..eb7e883 100644 --- a/src/timezones/Antarctica/Casey.ts +++ b/src/timezones/Antarctica/Casey.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Casey' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Casey', gmt_offset: [39600, 28800, 0] diff --git a/src/timezones/Antarctica/Davis.ts b/src/timezones/Antarctica/Davis.ts index 24db81f..f09b610 100644 --- a/src/timezones/Antarctica/Davis.ts +++ b/src/timezones/Antarctica/Davis.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Davis' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Davis', gmt_offset: [25200, 18000, 0] diff --git a/src/timezones/Antarctica/DumontDUrville.ts b/src/timezones/Antarctica/DumontDUrville.ts index 0121a8c..0020d06 100644 --- a/src/timezones/Antarctica/DumontDUrville.ts +++ b/src/timezones/Antarctica/DumontDUrville.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/DumontDUrville' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/DumontDUrville', gmt_offset: [36000, 0] diff --git a/src/timezones/Antarctica/Macquarie.ts b/src/timezones/Antarctica/Macquarie.ts index e5d00e1..14b1ec7 100644 --- a/src/timezones/Antarctica/Macquarie.ts +++ b/src/timezones/Antarctica/Macquarie.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Macquarie' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Macquarie', gmt_offset: [39600, 36000, 0] diff --git a/src/timezones/Antarctica/Mawson.ts b/src/timezones/Antarctica/Mawson.ts index aa50c6b..78757db 100644 --- a/src/timezones/Antarctica/Mawson.ts +++ b/src/timezones/Antarctica/Mawson.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Mawson' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Mawson', gmt_offset: [21600, 18000, 0] diff --git a/src/timezones/Antarctica/McMurdo.ts b/src/timezones/Antarctica/McMurdo.ts index 01da938..139a762 100644 --- a/src/timezones/Antarctica/McMurdo.ts +++ b/src/timezones/Antarctica/McMurdo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/McMurdo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/McMurdo', gmt_offset: [46800, 43200, 0] diff --git a/src/timezones/Antarctica/Palmer.ts b/src/timezones/Antarctica/Palmer.ts index 9866474..e2a9e16 100644 --- a/src/timezones/Antarctica/Palmer.ts +++ b/src/timezones/Antarctica/Palmer.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Palmer' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Palmer', gmt_offset: [0, -7200, -10800, -14400] diff --git a/src/timezones/Antarctica/Rothera.ts b/src/timezones/Antarctica/Rothera.ts index 8c03461..bd0e5a8 100644 --- a/src/timezones/Antarctica/Rothera.ts +++ b/src/timezones/Antarctica/Rothera.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Rothera' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Rothera', gmt_offset: [0, -10800] diff --git a/src/timezones/Antarctica/Syowa.ts b/src/timezones/Antarctica/Syowa.ts index c8e04e3..3a81cdd 100644 --- a/src/timezones/Antarctica/Syowa.ts +++ b/src/timezones/Antarctica/Syowa.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Syowa' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Syowa', gmt_offset: [10800, 0] diff --git a/src/timezones/Antarctica/Troll.ts b/src/timezones/Antarctica/Troll.ts index 67cefea..668826f 100644 --- a/src/timezones/Antarctica/Troll.ts +++ b/src/timezones/Antarctica/Troll.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Troll' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Troll', gmt_offset: [7200, 0] diff --git a/src/timezones/Antarctica/Vostok.ts b/src/timezones/Antarctica/Vostok.ts index adefd32..e720796 100644 --- a/src/timezones/Antarctica/Vostok.ts +++ b/src/timezones/Antarctica/Vostok.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Antarctica/Vostok' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Antarctica/Vostok', gmt_offset: [25200, 18000, 0] diff --git a/src/timezones/Arctic/Longyearbyen.ts b/src/timezones/Arctic/Longyearbyen.ts index b885cd4..c1337f3 100644 --- a/src/timezones/Arctic/Longyearbyen.ts +++ b/src/timezones/Arctic/Longyearbyen.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Arctic/Longyearbyen' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Arctic/Longyearbyen', gmt_offset: [10800, 7200, 3600, 3208] diff --git a/src/timezones/Asia/Aden.ts b/src/timezones/Asia/Aden.ts index fb157b1..0e4ebc6 100644 --- a/src/timezones/Asia/Aden.ts +++ b/src/timezones/Asia/Aden.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Aden' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Aden', gmt_offset: [10800, 10794] diff --git a/src/timezones/Asia/Almaty.ts b/src/timezones/Asia/Almaty.ts index ae3601a..7f13bdd 100644 --- a/src/timezones/Asia/Almaty.ts +++ b/src/timezones/Asia/Almaty.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Almaty' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Almaty', gmt_offset: [25200, 21600, 18468, 18000] diff --git a/src/timezones/Asia/Amman.ts b/src/timezones/Asia/Amman.ts index faf6383..3252bfb 100644 --- a/src/timezones/Asia/Amman.ts +++ b/src/timezones/Asia/Amman.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Amman' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Amman', gmt_offset: [10800, 8624, 7200] diff --git a/src/timezones/Asia/Anadyr.ts b/src/timezones/Asia/Anadyr.ts index f308aa0..2480360 100644 --- a/src/timezones/Asia/Anadyr.ts +++ b/src/timezones/Asia/Anadyr.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Anadyr' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Anadyr', gmt_offset: [50400, 46800, 43200, 42596, 39600] diff --git a/src/timezones/Asia/Aqtau.ts b/src/timezones/Asia/Aqtau.ts index fcb8e34..42573c4 100644 --- a/src/timezones/Asia/Aqtau.ts +++ b/src/timezones/Asia/Aqtau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Aqtau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Aqtau', gmt_offset: [21600, 18000, 14400, 12064] diff --git a/src/timezones/Asia/Aqtobe.ts b/src/timezones/Asia/Aqtobe.ts index ceecfa5..2569097 100644 --- a/src/timezones/Asia/Aqtobe.ts +++ b/src/timezones/Asia/Aqtobe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Aqtobe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Aqtobe', gmt_offset: [21600, 18000, 14400, 13720] diff --git a/src/timezones/Asia/Ashgabat.ts b/src/timezones/Asia/Ashgabat.ts index a284001..d201040 100644 --- a/src/timezones/Asia/Ashgabat.ts +++ b/src/timezones/Asia/Ashgabat.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Ashgabat' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Ashgabat', gmt_offset: [21600, 18000, 14400, 14012] diff --git a/src/timezones/Asia/Atyrau.ts b/src/timezones/Asia/Atyrau.ts index 853d429..0d30319 100644 --- a/src/timezones/Asia/Atyrau.ts +++ b/src/timezones/Asia/Atyrau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Atyrau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Atyrau', gmt_offset: [21600, 18000, 14400, 12464, 10800] diff --git a/src/timezones/Asia/Baghdad.ts b/src/timezones/Asia/Baghdad.ts index 65dddb5..2f6b99d 100644 --- a/src/timezones/Asia/Baghdad.ts +++ b/src/timezones/Asia/Baghdad.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Baghdad' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Baghdad', gmt_offset: [14400, 10800, 10660, 10656] diff --git a/src/timezones/Asia/Bahrain.ts b/src/timezones/Asia/Bahrain.ts index ebe7041..c0dc704 100644 --- a/src/timezones/Asia/Bahrain.ts +++ b/src/timezones/Asia/Bahrain.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Bahrain' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Bahrain', gmt_offset: [14400, 12600, 12140, 10800] diff --git a/src/timezones/Asia/Baku.ts b/src/timezones/Asia/Baku.ts index b0ff347..4a05d30 100644 --- a/src/timezones/Asia/Baku.ts +++ b/src/timezones/Asia/Baku.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Baku' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Baku', gmt_offset: [18000, 14400, 11964, 10800] diff --git a/src/timezones/Asia/Bangkok.ts b/src/timezones/Asia/Bangkok.ts index c7b819d..1cb97c3 100644 --- a/src/timezones/Asia/Bangkok.ts +++ b/src/timezones/Asia/Bangkok.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Bangkok' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Bangkok', gmt_offset: [25200, 24124] diff --git a/src/timezones/Asia/Barnaul.ts b/src/timezones/Asia/Barnaul.ts index 7b61499..4b0c685 100644 --- a/src/timezones/Asia/Barnaul.ts +++ b/src/timezones/Asia/Barnaul.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Barnaul' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Barnaul', gmt_offset: [28800, 25200, 21600, 20100] diff --git a/src/timezones/Asia/Beirut.ts b/src/timezones/Asia/Beirut.ts index 87aef36..3396278 100644 --- a/src/timezones/Asia/Beirut.ts +++ b/src/timezones/Asia/Beirut.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Beirut' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Beirut', gmt_offset: [10800, 8520, 7200] diff --git a/src/timezones/Asia/Bishkek.ts b/src/timezones/Asia/Bishkek.ts index 475fa15..2889ee8 100644 --- a/src/timezones/Asia/Bishkek.ts +++ b/src/timezones/Asia/Bishkek.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Bishkek' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Bishkek', gmt_offset: [25200, 21600, 18000, 17904] diff --git a/src/timezones/Asia/Brunei.ts b/src/timezones/Asia/Brunei.ts index d6d129c..c2728bd 100644 --- a/src/timezones/Asia/Brunei.ts +++ b/src/timezones/Asia/Brunei.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Brunei' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Brunei', gmt_offset: [28800, 27580, 27000] diff --git a/src/timezones/Asia/Chita.ts b/src/timezones/Asia/Chita.ts index d2386a8..acfd852 100644 --- a/src/timezones/Asia/Chita.ts +++ b/src/timezones/Asia/Chita.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Chita' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Chita', gmt_offset: [36000, 32400, 28800, 27232] diff --git a/src/timezones/Asia/Colombo.ts b/src/timezones/Asia/Colombo.ts index 826cf4e..1d86e58 100644 --- a/src/timezones/Asia/Colombo.ts +++ b/src/timezones/Asia/Colombo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Colombo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Colombo', gmt_offset: [23400, 21600, 19800, 19172, 19164] diff --git a/src/timezones/Asia/Damascus.ts b/src/timezones/Asia/Damascus.ts index 7e64273..d585fd9 100644 --- a/src/timezones/Asia/Damascus.ts +++ b/src/timezones/Asia/Damascus.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Damascus' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Damascus', gmt_offset: [10800, 8712, 7200] diff --git a/src/timezones/Asia/Dhaka.ts b/src/timezones/Asia/Dhaka.ts index c143c89..dd473ff 100644 --- a/src/timezones/Asia/Dhaka.ts +++ b/src/timezones/Asia/Dhaka.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Dhaka' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Dhaka', gmt_offset: [25200, 23400, 21700, 21600, 21200, 19800] diff --git a/src/timezones/Asia/Dili.ts b/src/timezones/Asia/Dili.ts index f34c90f..f477c86 100644 --- a/src/timezones/Asia/Dili.ts +++ b/src/timezones/Asia/Dili.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Dili' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Dili', gmt_offset: [32400, 30140, 28800] diff --git a/src/timezones/Asia/Dubai.ts b/src/timezones/Asia/Dubai.ts index bb11802..848b3cd 100644 --- a/src/timezones/Asia/Dubai.ts +++ b/src/timezones/Asia/Dubai.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Dubai' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Dubai', gmt_offset: [14400, 13272] diff --git a/src/timezones/Asia/Dushanbe.ts b/src/timezones/Asia/Dushanbe.ts index 91c3d8d..d44d2b9 100644 --- a/src/timezones/Asia/Dushanbe.ts +++ b/src/timezones/Asia/Dushanbe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Dushanbe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Dushanbe', gmt_offset: [25200, 21600, 18000, 16512] diff --git a/src/timezones/Asia/Famagusta.ts b/src/timezones/Asia/Famagusta.ts index cc0eebc..582439a 100644 --- a/src/timezones/Asia/Famagusta.ts +++ b/src/timezones/Asia/Famagusta.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Famagusta' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Famagusta', gmt_offset: [10800, 8148, 7200] diff --git a/src/timezones/Asia/Gaza.ts b/src/timezones/Asia/Gaza.ts index 1110e07..55699de 100644 --- a/src/timezones/Asia/Gaza.ts +++ b/src/timezones/Asia/Gaza.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Gaza' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Gaza', gmt_offset: [10800, 8272, 7200] diff --git a/src/timezones/Asia/Hebron.ts b/src/timezones/Asia/Hebron.ts index 67bbf10..a5fd1b8 100644 --- a/src/timezones/Asia/Hebron.ts +++ b/src/timezones/Asia/Hebron.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Hebron' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Hebron', gmt_offset: [10800, 8423, 7200] diff --git a/src/timezones/Asia/Ho_Chi_Minh.ts b/src/timezones/Asia/Ho_Chi_Minh.ts index 58f5b1a..c8a67e1 100644 --- a/src/timezones/Asia/Ho_Chi_Minh.ts +++ b/src/timezones/Asia/Ho_Chi_Minh.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Ho_Chi_Minh' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Ho_Chi_Minh', gmt_offset: [32400, 28800, 25590, 25200] diff --git a/src/timezones/Asia/Hong_Kong.ts b/src/timezones/Asia/Hong_Kong.ts index 1ece91c..6d7fea9 100644 --- a/src/timezones/Asia/Hong_Kong.ts +++ b/src/timezones/Asia/Hong_Kong.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Hong_Kong' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Hong_Kong', gmt_offset: [32400, 30600, 28800, 27402] diff --git a/src/timezones/Asia/Hovd.ts b/src/timezones/Asia/Hovd.ts index 0def4bb..2381085 100644 --- a/src/timezones/Asia/Hovd.ts +++ b/src/timezones/Asia/Hovd.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Hovd' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Hovd', gmt_offset: [28800, 25200, 21996, 21600] diff --git a/src/timezones/Asia/Irkutsk.ts b/src/timezones/Asia/Irkutsk.ts index 4dcd3bb..d4e3223 100644 --- a/src/timezones/Asia/Irkutsk.ts +++ b/src/timezones/Asia/Irkutsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Irkutsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Irkutsk', gmt_offset: [32400, 28800, 25200, 25025] diff --git a/src/timezones/Asia/Jakarta.ts b/src/timezones/Asia/Jakarta.ts index 72654e3..d97811f 100644 --- a/src/timezones/Asia/Jakarta.ts +++ b/src/timezones/Asia/Jakarta.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Jakarta' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Jakarta', gmt_offset: [32400, 28800, 27000, 26400, 25632, 25200] diff --git a/src/timezones/Asia/Jayapura.ts b/src/timezones/Asia/Jayapura.ts index f85d6e4..9f01e07 100644 --- a/src/timezones/Asia/Jayapura.ts +++ b/src/timezones/Asia/Jayapura.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Jayapura' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Jayapura', gmt_offset: [34200, 33768, 32400] diff --git a/src/timezones/Asia/Jerusalem.ts b/src/timezones/Asia/Jerusalem.ts index 90893a2..df259f7 100644 --- a/src/timezones/Asia/Jerusalem.ts +++ b/src/timezones/Asia/Jerusalem.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Jerusalem' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Jerusalem', gmt_offset: [14400, 10800, 8454, 8440, 7200] diff --git a/src/timezones/Asia/Kabul.ts b/src/timezones/Asia/Kabul.ts index 156c276..5f4fcef 100644 --- a/src/timezones/Asia/Kabul.ts +++ b/src/timezones/Asia/Kabul.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kabul' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kabul', gmt_offset: [16608, 16200, 14400] diff --git a/src/timezones/Asia/Kamchatka.ts b/src/timezones/Asia/Kamchatka.ts index c604d93..53cf0ea 100644 --- a/src/timezones/Asia/Kamchatka.ts +++ b/src/timezones/Asia/Kamchatka.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kamchatka' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kamchatka', gmt_offset: [46800, 43200, 39600, 38076] diff --git a/src/timezones/Asia/Karachi.ts b/src/timezones/Asia/Karachi.ts index 7ea0ea5..bc3c4f5 100644 --- a/src/timezones/Asia/Karachi.ts +++ b/src/timezones/Asia/Karachi.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Karachi' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Karachi', gmt_offset: [23400, 21600, 19800, 18000, 16092] diff --git a/src/timezones/Asia/Kathmandu.ts b/src/timezones/Asia/Kathmandu.ts index 829ec1c..ae3bbe3 100644 --- a/src/timezones/Asia/Kathmandu.ts +++ b/src/timezones/Asia/Kathmandu.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kathmandu' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kathmandu', gmt_offset: [20700, 20476, 19800] diff --git a/src/timezones/Asia/Khandyga.ts b/src/timezones/Asia/Khandyga.ts index 516f2e9..37aab1c 100644 --- a/src/timezones/Asia/Khandyga.ts +++ b/src/timezones/Asia/Khandyga.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Khandyga' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Khandyga', gmt_offset: [39600, 36000, 32533, 32400, 28800] diff --git a/src/timezones/Asia/Kolkata.ts b/src/timezones/Asia/Kolkata.ts index 65ab094..b0b7a86 100644 --- a/src/timezones/Asia/Kolkata.ts +++ b/src/timezones/Asia/Kolkata.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kolkata' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kolkata', gmt_offset: [23400, 21208, 21200, 19800, 19270] diff --git a/src/timezones/Asia/Krasnoyarsk.ts b/src/timezones/Asia/Krasnoyarsk.ts index 6bf17c2..b193a8d 100644 --- a/src/timezones/Asia/Krasnoyarsk.ts +++ b/src/timezones/Asia/Krasnoyarsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Krasnoyarsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Krasnoyarsk', gmt_offset: [28800, 25200, 22286, 21600] diff --git a/src/timezones/Asia/Kuala_Lumpur.ts b/src/timezones/Asia/Kuala_Lumpur.ts index c113de2..518d432 100644 --- a/src/timezones/Asia/Kuala_Lumpur.ts +++ b/src/timezones/Asia/Kuala_Lumpur.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kuala_Lumpur' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kuala_Lumpur', gmt_offset: [32400, 28800, 27000, 26400, 25200, 24925, 24406] diff --git a/src/timezones/Asia/Kuching.ts b/src/timezones/Asia/Kuching.ts index e50f6a4..d073454 100644 --- a/src/timezones/Asia/Kuching.ts +++ b/src/timezones/Asia/Kuching.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kuching' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kuching', gmt_offset: [32400, 30000, 28800, 27000, 26480] diff --git a/src/timezones/Asia/Kuwait.ts b/src/timezones/Asia/Kuwait.ts index 6dc054e..037cd1c 100644 --- a/src/timezones/Asia/Kuwait.ts +++ b/src/timezones/Asia/Kuwait.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Kuwait' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Kuwait', gmt_offset: [11516, 10800] diff --git a/src/timezones/Asia/Macau.ts b/src/timezones/Asia/Macau.ts index 2fe205f..e44610e 100644 --- a/src/timezones/Asia/Macau.ts +++ b/src/timezones/Asia/Macau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Macau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Macau', gmt_offset: [36000, 32400, 28800, 27250] diff --git a/src/timezones/Asia/Magadan.ts b/src/timezones/Asia/Magadan.ts index 77465d0..ddd5c57 100644 --- a/src/timezones/Asia/Magadan.ts +++ b/src/timezones/Asia/Magadan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Magadan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Magadan', gmt_offset: [43200, 39600, 36192, 36000] diff --git a/src/timezones/Asia/Makassar.ts b/src/timezones/Asia/Makassar.ts index 58af6f9..871d0b3 100644 --- a/src/timezones/Asia/Makassar.ts +++ b/src/timezones/Asia/Makassar.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Makassar' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Makassar', gmt_offset: [32400, 28800, 28656] diff --git a/src/timezones/Asia/Manila.ts b/src/timezones/Asia/Manila.ts index ac3f8ec..93e3d24 100644 --- a/src/timezones/Asia/Manila.ts +++ b/src/timezones/Asia/Manila.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Manila' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Manila', gmt_offset: [32400, 29032, 28800, -57368] diff --git a/src/timezones/Asia/Muscat.ts b/src/timezones/Asia/Muscat.ts index a638fda..fc19275 100644 --- a/src/timezones/Asia/Muscat.ts +++ b/src/timezones/Asia/Muscat.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Muscat' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Muscat', gmt_offset: [14400, 14064] diff --git a/src/timezones/Asia/Nicosia.ts b/src/timezones/Asia/Nicosia.ts index 6b3f617..0701f95 100644 --- a/src/timezones/Asia/Nicosia.ts +++ b/src/timezones/Asia/Nicosia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Nicosia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Nicosia', gmt_offset: [10800, 8008, 7200] diff --git a/src/timezones/Asia/Novokuznetsk.ts b/src/timezones/Asia/Novokuznetsk.ts index dcc3f52..ce90c11 100644 --- a/src/timezones/Asia/Novokuznetsk.ts +++ b/src/timezones/Asia/Novokuznetsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Novokuznetsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Novokuznetsk', gmt_offset: [28800, 25200, 21600, 20928] diff --git a/src/timezones/Asia/Novosibirsk.ts b/src/timezones/Asia/Novosibirsk.ts index 69085ac..716fa1b 100644 --- a/src/timezones/Asia/Novosibirsk.ts +++ b/src/timezones/Asia/Novosibirsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Novosibirsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Novosibirsk', gmt_offset: [28800, 25200, 21600, 19900] diff --git a/src/timezones/Asia/Omsk.ts b/src/timezones/Asia/Omsk.ts index 2632cf2..ddd4961 100644 --- a/src/timezones/Asia/Omsk.ts +++ b/src/timezones/Asia/Omsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Omsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Omsk', gmt_offset: [25200, 21600, 18000, 17610] diff --git a/src/timezones/Asia/Oral.ts b/src/timezones/Asia/Oral.ts index 1c9a601..52503f1 100644 --- a/src/timezones/Asia/Oral.ts +++ b/src/timezones/Asia/Oral.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Oral' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Oral', gmt_offset: [21600, 18000, 14400, 12324, 10800] diff --git a/src/timezones/Asia/Phnom_Penh.ts b/src/timezones/Asia/Phnom_Penh.ts index d9e88c1..e292833 100644 --- a/src/timezones/Asia/Phnom_Penh.ts +++ b/src/timezones/Asia/Phnom_Penh.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Phnom_Penh' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Phnom_Penh', gmt_offset: [32400, 28800, 25590, 25200, 25180] diff --git a/src/timezones/Asia/Pontianak.ts b/src/timezones/Asia/Pontianak.ts index a3c8964..a598abc 100644 --- a/src/timezones/Asia/Pontianak.ts +++ b/src/timezones/Asia/Pontianak.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Pontianak' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Pontianak', gmt_offset: [32400, 28800, 27000, 26240, 25200] diff --git a/src/timezones/Asia/Pyongyang.ts b/src/timezones/Asia/Pyongyang.ts index 87fbdd0..fe7a251 100644 --- a/src/timezones/Asia/Pyongyang.ts +++ b/src/timezones/Asia/Pyongyang.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Pyongyang' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Pyongyang', gmt_offset: [32400, 30600, 30180] diff --git a/src/timezones/Asia/Qatar.ts b/src/timezones/Asia/Qatar.ts index fc62853..2d8d1c2 100644 --- a/src/timezones/Asia/Qatar.ts +++ b/src/timezones/Asia/Qatar.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Qatar' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Qatar', gmt_offset: [14400, 12368, 10800] diff --git a/src/timezones/Asia/Qostanay.ts b/src/timezones/Asia/Qostanay.ts index e9dfdc3..100919c 100644 --- a/src/timezones/Asia/Qostanay.ts +++ b/src/timezones/Asia/Qostanay.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Qostanay' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Qostanay', gmt_offset: [21600, 18000, 15268, 14400] diff --git a/src/timezones/Asia/Qyzylorda.ts b/src/timezones/Asia/Qyzylorda.ts index a46679d..55d8fe0 100644 --- a/src/timezones/Asia/Qyzylorda.ts +++ b/src/timezones/Asia/Qyzylorda.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Qyzylorda' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Qyzylorda', gmt_offset: [21600, 18000, 15712, 14400] diff --git a/src/timezones/Asia/Riyadh.ts b/src/timezones/Asia/Riyadh.ts index f7d54fa..71c3e95 100644 --- a/src/timezones/Asia/Riyadh.ts +++ b/src/timezones/Asia/Riyadh.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Riyadh' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Riyadh', gmt_offset: [11212, 10800] diff --git a/src/timezones/Asia/Sakhalin.ts b/src/timezones/Asia/Sakhalin.ts index 7a767a2..bf56b8e 100644 --- a/src/timezones/Asia/Sakhalin.ts +++ b/src/timezones/Asia/Sakhalin.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Sakhalin' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Sakhalin', gmt_offset: [43200, 39600, 36000, 34248, 32400] diff --git a/src/timezones/Asia/Samarkand.ts b/src/timezones/Asia/Samarkand.ts index f60a3ad..597fdaa 100644 --- a/src/timezones/Asia/Samarkand.ts +++ b/src/timezones/Asia/Samarkand.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Samarkand' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Samarkand', gmt_offset: [21600, 18000, 16073, 14400] diff --git a/src/timezones/Asia/Seoul.ts b/src/timezones/Asia/Seoul.ts index 99d0ef3..09b009e 100644 --- a/src/timezones/Asia/Seoul.ts +++ b/src/timezones/Asia/Seoul.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Seoul' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Seoul', gmt_offset: [36000, 34200, 32400, 30600, 30472] diff --git a/src/timezones/Asia/Shanghai.ts b/src/timezones/Asia/Shanghai.ts index 4374512..1a28e14 100644 --- a/src/timezones/Asia/Shanghai.ts +++ b/src/timezones/Asia/Shanghai.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Shanghai' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Shanghai', gmt_offset: [32400, 29143, 28800] diff --git a/src/timezones/Asia/Singapore.ts b/src/timezones/Asia/Singapore.ts index 55a69e8..60bb68a 100644 --- a/src/timezones/Asia/Singapore.ts +++ b/src/timezones/Asia/Singapore.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Singapore' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Singapore', gmt_offset: [32400, 28800, 27000, 26400, 25200, 24925] diff --git a/src/timezones/Asia/Srednekolymsk.ts b/src/timezones/Asia/Srednekolymsk.ts index 1fcad55..d90dc0a 100644 --- a/src/timezones/Asia/Srednekolymsk.ts +++ b/src/timezones/Asia/Srednekolymsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Srednekolymsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Srednekolymsk', gmt_offset: [43200, 39600, 36892, 36000] diff --git a/src/timezones/Asia/Taipei.ts b/src/timezones/Asia/Taipei.ts index 5fad0e4..a0f9299 100644 --- a/src/timezones/Asia/Taipei.ts +++ b/src/timezones/Asia/Taipei.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Taipei' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Taipei', gmt_offset: [32400, 29160, 28800] diff --git a/src/timezones/Asia/Tashkent.ts b/src/timezones/Asia/Tashkent.ts index dcaa423..993deab 100644 --- a/src/timezones/Asia/Tashkent.ts +++ b/src/timezones/Asia/Tashkent.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Tashkent' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Tashkent', gmt_offset: [25200, 21600, 18000, 16631] diff --git a/src/timezones/Asia/Tbilisi.ts b/src/timezones/Asia/Tbilisi.ts index d4e94a1..94a45e7 100644 --- a/src/timezones/Asia/Tbilisi.ts +++ b/src/timezones/Asia/Tbilisi.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Tbilisi' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Tbilisi', gmt_offset: [18000, 14400, 10800, 10751] diff --git a/src/timezones/Asia/Tehran.ts b/src/timezones/Asia/Tehran.ts index 5b69ee3..40eba14 100644 --- a/src/timezones/Asia/Tehran.ts +++ b/src/timezones/Asia/Tehran.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Tehran' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Tehran', gmt_offset: [18000, 16200, 14400, 12600, 12344] diff --git a/src/timezones/Asia/Thimphu.ts b/src/timezones/Asia/Thimphu.ts index 85d9827..0b11b04 100644 --- a/src/timezones/Asia/Thimphu.ts +++ b/src/timezones/Asia/Thimphu.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Thimphu' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Thimphu', gmt_offset: [21600, 21516, 19800] diff --git a/src/timezones/Asia/Tokyo.ts b/src/timezones/Asia/Tokyo.ts index a719cf2..09b5bc1 100644 --- a/src/timezones/Asia/Tokyo.ts +++ b/src/timezones/Asia/Tokyo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Tokyo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Tokyo', gmt_offset: [36000, 33539, 32400] diff --git a/src/timezones/Asia/Tomsk.ts b/src/timezones/Asia/Tomsk.ts index 3aac8bf..7ed703c 100644 --- a/src/timezones/Asia/Tomsk.ts +++ b/src/timezones/Asia/Tomsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Tomsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Tomsk', gmt_offset: [28800, 25200, 21600, 20391] diff --git a/src/timezones/Asia/Ulaanbaatar.ts b/src/timezones/Asia/Ulaanbaatar.ts index 465cefc..c8a66af 100644 --- a/src/timezones/Asia/Ulaanbaatar.ts +++ b/src/timezones/Asia/Ulaanbaatar.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Ulaanbaatar' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Ulaanbaatar', gmt_offset: [32400, 28800, 25652, 25200] diff --git a/src/timezones/Asia/Urumqi.ts b/src/timezones/Asia/Urumqi.ts index 86ad74e..c212c24 100644 --- a/src/timezones/Asia/Urumqi.ts +++ b/src/timezones/Asia/Urumqi.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Urumqi' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Urumqi', gmt_offset: [21600, 21020] diff --git a/src/timezones/Asia/Ust-Nera.ts b/src/timezones/Asia/Ust-Nera.ts index f02d21e..5f8b114 100644 --- a/src/timezones/Asia/Ust-Nera.ts +++ b/src/timezones/Asia/Ust-Nera.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Ust-Nera' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Ust-Nera', gmt_offset: [43200, 39600, 36000, 34374, 32400, 28800] diff --git a/src/timezones/Asia/Vientiane.ts b/src/timezones/Asia/Vientiane.ts index 30e306e..acab144 100644 --- a/src/timezones/Asia/Vientiane.ts +++ b/src/timezones/Asia/Vientiane.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Vientiane' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Vientiane', gmt_offset: [32400, 28800, 25590, 25200, 24624] diff --git a/src/timezones/Asia/Vladivostok.ts b/src/timezones/Asia/Vladivostok.ts index 36fca0d..724cd85 100644 --- a/src/timezones/Asia/Vladivostok.ts +++ b/src/timezones/Asia/Vladivostok.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Vladivostok' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Vladivostok', gmt_offset: [39600, 36000, 32400, 31651] diff --git a/src/timezones/Asia/Yakutsk.ts b/src/timezones/Asia/Yakutsk.ts index 0065092..dd48387 100644 --- a/src/timezones/Asia/Yakutsk.ts +++ b/src/timezones/Asia/Yakutsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Yakutsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Yakutsk', gmt_offset: [36000, 32400, 31138, 28800] diff --git a/src/timezones/Asia/Yangon.ts b/src/timezones/Asia/Yangon.ts index b53229a..eb83c66 100644 --- a/src/timezones/Asia/Yangon.ts +++ b/src/timezones/Asia/Yangon.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Yangon' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Yangon', gmt_offset: [32400, 23400, 23087] diff --git a/src/timezones/Asia/Yekaterinburg.ts b/src/timezones/Asia/Yekaterinburg.ts index 4340874..d592e02 100644 --- a/src/timezones/Asia/Yekaterinburg.ts +++ b/src/timezones/Asia/Yekaterinburg.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Yekaterinburg' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Yekaterinburg', gmt_offset: [21600, 18000, 14553, 14400, 13505] diff --git a/src/timezones/Asia/Yerevan.ts b/src/timezones/Asia/Yerevan.ts index 7dca0f3..e293a99 100644 --- a/src/timezones/Asia/Yerevan.ts +++ b/src/timezones/Asia/Yerevan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Asia/Yerevan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Asia/Yerevan', gmt_offset: [18000, 14400, 10800, 10680] diff --git a/src/timezones/Atlantic/Azores.ts b/src/timezones/Atlantic/Azores.ts index f4bd927..04358e2 100644 --- a/src/timezones/Atlantic/Azores.ts +++ b/src/timezones/Atlantic/Azores.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Azores' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Azores', gmt_offset: [3600, 0, -3600, -6160, -6872, -7200] diff --git a/src/timezones/Atlantic/Bermuda.ts b/src/timezones/Atlantic/Bermuda.ts index b99ae9d..3309838 100644 --- a/src/timezones/Atlantic/Bermuda.ts +++ b/src/timezones/Atlantic/Bermuda.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Bermuda' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Bermuda', gmt_offset: [-10800, -11958, -14400, -15558] diff --git a/src/timezones/Atlantic/Canary.ts b/src/timezones/Atlantic/Canary.ts index de77b6e..eb724b1 100644 --- a/src/timezones/Atlantic/Canary.ts +++ b/src/timezones/Atlantic/Canary.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Canary' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Canary', gmt_offset: [3600, 0, -3600, -3696] diff --git a/src/timezones/Atlantic/Cape_Verde.ts b/src/timezones/Atlantic/Cape_Verde.ts index f1e0bdc..d2187b2 100644 --- a/src/timezones/Atlantic/Cape_Verde.ts +++ b/src/timezones/Atlantic/Cape_Verde.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Cape_Verde' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Cape_Verde', gmt_offset: [-3600, -5644, -7200] diff --git a/src/timezones/Atlantic/Faroe.ts b/src/timezones/Atlantic/Faroe.ts index 40a4fa1..09bea5a 100644 --- a/src/timezones/Atlantic/Faroe.ts +++ b/src/timezones/Atlantic/Faroe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Faroe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Faroe', gmt_offset: [3600, 0, -1624] diff --git a/src/timezones/Atlantic/Madeira.ts b/src/timezones/Atlantic/Madeira.ts index 814b8be..1cd0c3b 100644 --- a/src/timezones/Atlantic/Madeira.ts +++ b/src/timezones/Atlantic/Madeira.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Madeira' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Madeira', gmt_offset: [3600, 0, -3600, -4056] diff --git a/src/timezones/Atlantic/Reykjavik.ts b/src/timezones/Atlantic/Reykjavik.ts index 2905266..1859c90 100644 --- a/src/timezones/Atlantic/Reykjavik.ts +++ b/src/timezones/Atlantic/Reykjavik.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Reykjavik' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Reykjavik', gmt_offset: [0, -3600, -5280] diff --git a/src/timezones/Atlantic/South_Georgia.ts b/src/timezones/Atlantic/South_Georgia.ts index 73623f9..30939d2 100644 --- a/src/timezones/Atlantic/South_Georgia.ts +++ b/src/timezones/Atlantic/South_Georgia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/South_Georgia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/South_Georgia', gmt_offset: [-7200, -8768] diff --git a/src/timezones/Atlantic/St_Helena.ts b/src/timezones/Atlantic/St_Helena.ts index 136446f..1b9281a 100644 --- a/src/timezones/Atlantic/St_Helena.ts +++ b/src/timezones/Atlantic/St_Helena.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/St_Helena' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/St_Helena', gmt_offset: [0, -1368] diff --git a/src/timezones/Atlantic/Stanley.ts b/src/timezones/Atlantic/Stanley.ts index d96b0d6..db1c161 100644 --- a/src/timezones/Atlantic/Stanley.ts +++ b/src/timezones/Atlantic/Stanley.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Atlantic/Stanley' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Atlantic/Stanley', gmt_offset: [-7200, -10800, -13884, -14400] diff --git a/src/timezones/Australia/Adelaide.ts b/src/timezones/Australia/Adelaide.ts index 69174dd..3c97759 100644 --- a/src/timezones/Australia/Adelaide.ts +++ b/src/timezones/Australia/Adelaide.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Adelaide' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Adelaide', gmt_offset: [37800, 34200, 33260, 32400] diff --git a/src/timezones/Australia/Brisbane.ts b/src/timezones/Australia/Brisbane.ts index 4ffb701..63c2368 100644 --- a/src/timezones/Australia/Brisbane.ts +++ b/src/timezones/Australia/Brisbane.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Brisbane' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Brisbane', gmt_offset: [39600, 36728, 36000] diff --git a/src/timezones/Australia/Broken_Hill.ts b/src/timezones/Australia/Broken_Hill.ts index 314abfc..de20d3f 100644 --- a/src/timezones/Australia/Broken_Hill.ts +++ b/src/timezones/Australia/Broken_Hill.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Broken_Hill' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Broken_Hill', gmt_offset: [37800, 36000, 34200, 33948, 32400] diff --git a/src/timezones/Australia/Darwin.ts b/src/timezones/Australia/Darwin.ts index 1c0669f..6a7e8c0 100644 --- a/src/timezones/Australia/Darwin.ts +++ b/src/timezones/Australia/Darwin.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Darwin' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Darwin', gmt_offset: [37800, 34200, 32400, 31400] diff --git a/src/timezones/Australia/Eucla.ts b/src/timezones/Australia/Eucla.ts index 4a3751e..11aa34f 100644 --- a/src/timezones/Australia/Eucla.ts +++ b/src/timezones/Australia/Eucla.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Eucla' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Eucla', gmt_offset: [35100, 31500, 30928] diff --git a/src/timezones/Australia/Hobart.ts b/src/timezones/Australia/Hobart.ts index c6760e9..26602a9 100644 --- a/src/timezones/Australia/Hobart.ts +++ b/src/timezones/Australia/Hobart.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Hobart' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Hobart', gmt_offset: [39600, 36000, 35356] diff --git a/src/timezones/Australia/Lindeman.ts b/src/timezones/Australia/Lindeman.ts index 663911c..cea9a70 100644 --- a/src/timezones/Australia/Lindeman.ts +++ b/src/timezones/Australia/Lindeman.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Lindeman' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Lindeman', gmt_offset: [39600, 36000, 35756] diff --git a/src/timezones/Australia/Lord_Howe.ts b/src/timezones/Australia/Lord_Howe.ts index a0abb5a..5b3957c 100644 --- a/src/timezones/Australia/Lord_Howe.ts +++ b/src/timezones/Australia/Lord_Howe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Lord_Howe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Lord_Howe', gmt_offset: [41400, 39600, 38180, 37800, 36000] diff --git a/src/timezones/Australia/Melbourne.ts b/src/timezones/Australia/Melbourne.ts index ed83bb6..40b25ce 100644 --- a/src/timezones/Australia/Melbourne.ts +++ b/src/timezones/Australia/Melbourne.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Melbourne' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Melbourne', gmt_offset: [39600, 36000, 34792] diff --git a/src/timezones/Australia/Perth.ts b/src/timezones/Australia/Perth.ts index c6b2e7a..29926ea 100644 --- a/src/timezones/Australia/Perth.ts +++ b/src/timezones/Australia/Perth.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Perth' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Perth', gmt_offset: [32400, 28800, 27804] diff --git a/src/timezones/Australia/Sydney.ts b/src/timezones/Australia/Sydney.ts index 024ef8d..74e4831 100644 --- a/src/timezones/Australia/Sydney.ts +++ b/src/timezones/Australia/Sydney.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Australia/Sydney' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Australia/Sydney', gmt_offset: [39600, 36292, 36000] diff --git a/src/timezones/Europe/Amsterdam.ts b/src/timezones/Europe/Amsterdam.ts index 6e5c34d..4edb2f1 100644 --- a/src/timezones/Europe/Amsterdam.ts +++ b/src/timezones/Europe/Amsterdam.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Amsterdam' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Amsterdam', gmt_offset: [7200, 4800, 4772, 3600, 1200, 1172] diff --git a/src/timezones/Europe/Andorra.ts b/src/timezones/Europe/Andorra.ts index ca82677..a987c61 100644 --- a/src/timezones/Europe/Andorra.ts +++ b/src/timezones/Europe/Andorra.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Andorra' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Andorra', gmt_offset: [7200, 3600, 364, 0] diff --git a/src/timezones/Europe/Astrakhan.ts b/src/timezones/Europe/Astrakhan.ts index 22eabdc..6635976 100644 --- a/src/timezones/Europe/Astrakhan.ts +++ b/src/timezones/Europe/Astrakhan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Astrakhan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Astrakhan', gmt_offset: [18000, 14400, 11532, 10800] diff --git a/src/timezones/Europe/Athens.ts b/src/timezones/Europe/Athens.ts index a17aa41..59ce5c1 100644 --- a/src/timezones/Europe/Athens.ts +++ b/src/timezones/Europe/Athens.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Athens' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Athens', gmt_offset: [10800, 7200, 5692, 3600] diff --git a/src/timezones/Europe/Belgrade.ts b/src/timezones/Europe/Belgrade.ts index 2040ff0..755cbbc 100644 --- a/src/timezones/Europe/Belgrade.ts +++ b/src/timezones/Europe/Belgrade.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Belgrade' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Belgrade', gmt_offset: [7200, 4920, 3600] diff --git a/src/timezones/Europe/Berlin.ts b/src/timezones/Europe/Berlin.ts index 4d9ec8b..1c570f2 100644 --- a/src/timezones/Europe/Berlin.ts +++ b/src/timezones/Europe/Berlin.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Berlin' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Berlin', gmt_offset: [10800, 7200, 3600, 3208] diff --git a/src/timezones/Europe/Bratislava.ts b/src/timezones/Europe/Bratislava.ts index 025dc0e..bcc9a63 100644 --- a/src/timezones/Europe/Bratislava.ts +++ b/src/timezones/Europe/Bratislava.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Bratislava' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Bratislava', gmt_offset: [7200, 3600, 3464, 0] diff --git a/src/timezones/Europe/Brussels.ts b/src/timezones/Europe/Brussels.ts index 64b1bed..d0b3a4f 100644 --- a/src/timezones/Europe/Brussels.ts +++ b/src/timezones/Europe/Brussels.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Brussels' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Brussels', gmt_offset: [7200, 3600, 1050, 0] diff --git a/src/timezones/Europe/Bucharest.ts b/src/timezones/Europe/Bucharest.ts index e04b827..84d16b5 100644 --- a/src/timezones/Europe/Bucharest.ts +++ b/src/timezones/Europe/Bucharest.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Bucharest' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Bucharest', gmt_offset: [10800, 7200, 6264] diff --git a/src/timezones/Europe/Budapest.ts b/src/timezones/Europe/Budapest.ts index 3d598f7..2214778 100644 --- a/src/timezones/Europe/Budapest.ts +++ b/src/timezones/Europe/Budapest.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Budapest' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Budapest', gmt_offset: [7200, 4580, 3600] diff --git a/src/timezones/Europe/Busingen.ts b/src/timezones/Europe/Busingen.ts index 81e7270..8bc5c9b 100644 --- a/src/timezones/Europe/Busingen.ts +++ b/src/timezones/Europe/Busingen.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Busingen' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Busingen', gmt_offset: [7200, 3600, 2048, 1786] diff --git a/src/timezones/Europe/Chisinau.ts b/src/timezones/Europe/Chisinau.ts index 1c10989..9edcbb6 100644 --- a/src/timezones/Europe/Chisinau.ts +++ b/src/timezones/Europe/Chisinau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Chisinau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Chisinau', gmt_offset: [14400, 10800, 7200, 6920, 6900, 6264, 3600] diff --git a/src/timezones/Europe/Copenhagen.ts b/src/timezones/Europe/Copenhagen.ts index 3ca1926..84079b2 100644 --- a/src/timezones/Europe/Copenhagen.ts +++ b/src/timezones/Europe/Copenhagen.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Copenhagen' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Copenhagen', gmt_offset: [7200, 3600, 3020] diff --git a/src/timezones/Europe/Dublin.ts b/src/timezones/Europe/Dublin.ts index 2ccc9a9..7d632e1 100644 --- a/src/timezones/Europe/Dublin.ts +++ b/src/timezones/Europe/Dublin.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Dublin' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Dublin', gmt_offset: [3600, 2079, 0, -1521] diff --git a/src/timezones/Europe/Gibraltar.ts b/src/timezones/Europe/Gibraltar.ts index e97af73..d91cfee 100644 --- a/src/timezones/Europe/Gibraltar.ts +++ b/src/timezones/Europe/Gibraltar.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Gibraltar' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Gibraltar', gmt_offset: [7200, 3600, 0, -1284] diff --git a/src/timezones/Europe/Guernsey.ts b/src/timezones/Europe/Guernsey.ts index 50ae677..5d2e024 100644 --- a/src/timezones/Europe/Guernsey.ts +++ b/src/timezones/Europe/Guernsey.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Guernsey' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Guernsey', gmt_offset: [7200, 3600, 0, -609] diff --git a/src/timezones/Europe/Helsinki.ts b/src/timezones/Europe/Helsinki.ts index 4e46a60..1634f74 100644 --- a/src/timezones/Europe/Helsinki.ts +++ b/src/timezones/Europe/Helsinki.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Helsinki' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Helsinki', gmt_offset: [10800, 7200, 5989] diff --git a/src/timezones/Europe/Isle_of_Man.ts b/src/timezones/Europe/Isle_of_Man.ts index ff21a89..e831e33 100644 --- a/src/timezones/Europe/Isle_of_Man.ts +++ b/src/timezones/Europe/Isle_of_Man.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Isle_of_Man' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Isle_of_Man', gmt_offset: [7200, 3600, 0, -1075] diff --git a/src/timezones/Europe/Istanbul.ts b/src/timezones/Europe/Istanbul.ts index cc09a3f..f75f14a 100644 --- a/src/timezones/Europe/Istanbul.ts +++ b/src/timezones/Europe/Istanbul.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Istanbul' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Istanbul', gmt_offset: [14400, 10800, 7200, 7016, 6952] diff --git a/src/timezones/Europe/Jersey.ts b/src/timezones/Europe/Jersey.ts index 4bda6ac..9311efc 100644 --- a/src/timezones/Europe/Jersey.ts +++ b/src/timezones/Europe/Jersey.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Jersey' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Jersey', gmt_offset: [7200, 3600, 0, -506] diff --git a/src/timezones/Europe/Kaliningrad.ts b/src/timezones/Europe/Kaliningrad.ts index a221474..5aea512 100644 --- a/src/timezones/Europe/Kaliningrad.ts +++ b/src/timezones/Europe/Kaliningrad.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Kaliningrad' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Kaliningrad', gmt_offset: [14400, 10800, 7200, 4920, 3600] diff --git a/src/timezones/Europe/Kirov.ts b/src/timezones/Europe/Kirov.ts index 1fda8c8..dc10a16 100644 --- a/src/timezones/Europe/Kirov.ts +++ b/src/timezones/Europe/Kirov.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Kirov' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Kirov', gmt_offset: [18000, 14400, 11928, 10800] diff --git a/src/timezones/Europe/Kyiv.ts b/src/timezones/Europe/Kyiv.ts index 4a5f546..592b0a6 100644 --- a/src/timezones/Europe/Kyiv.ts +++ b/src/timezones/Europe/Kyiv.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Kyiv' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Kyiv', gmt_offset: [14400, 10800, 7324, 7200, 3600] diff --git a/src/timezones/Europe/Lisbon.ts b/src/timezones/Europe/Lisbon.ts index 97921c1..75130f6 100644 --- a/src/timezones/Europe/Lisbon.ts +++ b/src/timezones/Europe/Lisbon.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Lisbon' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Lisbon', gmt_offset: [7200, 3600, 0, -2205] diff --git a/src/timezones/Europe/Ljubljana.ts b/src/timezones/Europe/Ljubljana.ts index 4865e72..5cdf1ac 100644 --- a/src/timezones/Europe/Ljubljana.ts +++ b/src/timezones/Europe/Ljubljana.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Ljubljana' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Ljubljana', gmt_offset: [7200, 3600, 3484] diff --git a/src/timezones/Europe/London.ts b/src/timezones/Europe/London.ts index 851d692..28b1f95 100644 --- a/src/timezones/Europe/London.ts +++ b/src/timezones/Europe/London.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/London' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/London', gmt_offset: [7200, 3600, 0, -75] diff --git a/src/timezones/Europe/Luxembourg.ts b/src/timezones/Europe/Luxembourg.ts index cd8348b..45f92f4 100644 --- a/src/timezones/Europe/Luxembourg.ts +++ b/src/timezones/Europe/Luxembourg.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Luxembourg' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Luxembourg', gmt_offset: [7200, 3600, 1476, 0] diff --git a/src/timezones/Europe/Madrid.ts b/src/timezones/Europe/Madrid.ts index 76cd45d..6e56785 100644 --- a/src/timezones/Europe/Madrid.ts +++ b/src/timezones/Europe/Madrid.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Madrid' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Madrid', gmt_offset: [7200, 3600, 0, -884] diff --git a/src/timezones/Europe/Malta.ts b/src/timezones/Europe/Malta.ts index 5367fae..301a4ed 100644 --- a/src/timezones/Europe/Malta.ts +++ b/src/timezones/Europe/Malta.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Malta' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Malta', gmt_offset: [7200, 3600, 3484] diff --git a/src/timezones/Europe/Mariehamn.ts b/src/timezones/Europe/Mariehamn.ts index 670da8a..b356abb 100644 --- a/src/timezones/Europe/Mariehamn.ts +++ b/src/timezones/Europe/Mariehamn.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Mariehamn' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Mariehamn', gmt_offset: [10800, 7200, 5989] diff --git a/src/timezones/Europe/Minsk.ts b/src/timezones/Europe/Minsk.ts index 373c6bb..dfce667 100644 --- a/src/timezones/Europe/Minsk.ts +++ b/src/timezones/Europe/Minsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Minsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Minsk', gmt_offset: [14400, 10800, 7200, 6616, 6600, 3600] diff --git a/src/timezones/Europe/Monaco.ts b/src/timezones/Europe/Monaco.ts index 66bbccd..6c73012 100644 --- a/src/timezones/Europe/Monaco.ts +++ b/src/timezones/Europe/Monaco.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Monaco' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Monaco', gmt_offset: [7200, 3600, 1772, 561, 0] diff --git a/src/timezones/Europe/Moscow.ts b/src/timezones/Europe/Moscow.ts index 43bab7a..03b98df 100644 --- a/src/timezones/Europe/Moscow.ts +++ b/src/timezones/Europe/Moscow.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Moscow' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Moscow', gmt_offset: [18000, 16279, 14400, 12679, 10800, 9079, 9017, 7200] diff --git a/src/timezones/Europe/Oslo.ts b/src/timezones/Europe/Oslo.ts index 96c4b83..f22e951 100644 --- a/src/timezones/Europe/Oslo.ts +++ b/src/timezones/Europe/Oslo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Oslo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Oslo', gmt_offset: [7200, 3600, 2580] diff --git a/src/timezones/Europe/Paris.ts b/src/timezones/Europe/Paris.ts index 466156d..b4a9ab9 100644 --- a/src/timezones/Europe/Paris.ts +++ b/src/timezones/Europe/Paris.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Paris' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Paris', gmt_offset: [7200, 3600, 561, 0] diff --git a/src/timezones/Europe/Podgorica.ts b/src/timezones/Europe/Podgorica.ts index 2208fc4..5220ec0 100644 --- a/src/timezones/Europe/Podgorica.ts +++ b/src/timezones/Europe/Podgorica.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Podgorica' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Podgorica', gmt_offset: [7200, 4920, 3600] diff --git a/src/timezones/Europe/Prague.ts b/src/timezones/Europe/Prague.ts index 821ac6c..1f9fe57 100644 --- a/src/timezones/Europe/Prague.ts +++ b/src/timezones/Europe/Prague.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Prague' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Prague', gmt_offset: [7200, 3600, 3464, 0] diff --git a/src/timezones/Europe/Riga.ts b/src/timezones/Europe/Riga.ts index b0fc73a..9f17587 100644 --- a/src/timezones/Europe/Riga.ts +++ b/src/timezones/Europe/Riga.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Riga' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Riga', gmt_offset: [14400, 10800, 9394, 7200, 5794, 3600] diff --git a/src/timezones/Europe/Rome.ts b/src/timezones/Europe/Rome.ts index 9052250..84084f7 100644 --- a/src/timezones/Europe/Rome.ts +++ b/src/timezones/Europe/Rome.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Rome' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Rome', gmt_offset: [7200, 3600, 2996] diff --git a/src/timezones/Europe/Samara.ts b/src/timezones/Europe/Samara.ts index d050c6f..457c504 100644 --- a/src/timezones/Europe/Samara.ts +++ b/src/timezones/Europe/Samara.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Samara' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Samara', gmt_offset: [18000, 14400, 12020, 10800] diff --git a/src/timezones/Europe/San_Marino.ts b/src/timezones/Europe/San_Marino.ts index f4e3205..7512347 100644 --- a/src/timezones/Europe/San_Marino.ts +++ b/src/timezones/Europe/San_Marino.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/San_Marino' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/San_Marino', gmt_offset: [7200, 3600, 2996] diff --git a/src/timezones/Europe/Sarajevo.ts b/src/timezones/Europe/Sarajevo.ts index a861468..43e549b 100644 --- a/src/timezones/Europe/Sarajevo.ts +++ b/src/timezones/Europe/Sarajevo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Sarajevo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Sarajevo', gmt_offset: [7200, 4420, 3600] diff --git a/src/timezones/Europe/Saratov.ts b/src/timezones/Europe/Saratov.ts index 1b7172a..691d4c6 100644 --- a/src/timezones/Europe/Saratov.ts +++ b/src/timezones/Europe/Saratov.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Saratov' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Saratov', gmt_offset: [18000, 14400, 11058, 10800] diff --git a/src/timezones/Europe/Simferopol.ts b/src/timezones/Europe/Simferopol.ts index 028accc..ba22f81 100644 --- a/src/timezones/Europe/Simferopol.ts +++ b/src/timezones/Europe/Simferopol.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Simferopol' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Simferopol', gmt_offset: [14400, 10800, 8184, 8160, 7200, 3600] diff --git a/src/timezones/Europe/Skopje.ts b/src/timezones/Europe/Skopje.ts index 936f51a..976c13a 100644 --- a/src/timezones/Europe/Skopje.ts +++ b/src/timezones/Europe/Skopje.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Skopje' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Skopje', gmt_offset: [7200, 5144, 3600] diff --git a/src/timezones/Europe/Sofia.ts b/src/timezones/Europe/Sofia.ts index b0b413a..93dc160 100644 --- a/src/timezones/Europe/Sofia.ts +++ b/src/timezones/Europe/Sofia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Sofia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Sofia', gmt_offset: [10800, 7200, 7016, 5596, 3600] diff --git a/src/timezones/Europe/Stockholm.ts b/src/timezones/Europe/Stockholm.ts index 37b9c47..e13dfcd 100644 --- a/src/timezones/Europe/Stockholm.ts +++ b/src/timezones/Europe/Stockholm.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Stockholm' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Stockholm', gmt_offset: [7200, 4332, 3614, 3600] diff --git a/src/timezones/Europe/Tallinn.ts b/src/timezones/Europe/Tallinn.ts index 81896be..b11a5e8 100644 --- a/src/timezones/Europe/Tallinn.ts +++ b/src/timezones/Europe/Tallinn.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Tallinn' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Tallinn', gmt_offset: [14400, 10800, 7200, 5940, 3600] diff --git a/src/timezones/Europe/Tirane.ts b/src/timezones/Europe/Tirane.ts index 641edb9..0f80387 100644 --- a/src/timezones/Europe/Tirane.ts +++ b/src/timezones/Europe/Tirane.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Tirane' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Tirane', gmt_offset: [7200, 4760, 3600] diff --git a/src/timezones/Europe/Ulyanovsk.ts b/src/timezones/Europe/Ulyanovsk.ts index d97924b..4890788 100644 --- a/src/timezones/Europe/Ulyanovsk.ts +++ b/src/timezones/Europe/Ulyanovsk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Ulyanovsk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Ulyanovsk', gmt_offset: [18000, 14400, 11616, 10800, 7200] diff --git a/src/timezones/Europe/Vaduz.ts b/src/timezones/Europe/Vaduz.ts index f5be010..97d3d6e 100644 --- a/src/timezones/Europe/Vaduz.ts +++ b/src/timezones/Europe/Vaduz.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Vaduz' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Vaduz', gmt_offset: [7200, 3600, 2284] diff --git a/src/timezones/Europe/Vatican.ts b/src/timezones/Europe/Vatican.ts index d2cacf3..6d703ef 100644 --- a/src/timezones/Europe/Vatican.ts +++ b/src/timezones/Europe/Vatican.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Vatican' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Vatican', gmt_offset: [7200, 3600, 2996] diff --git a/src/timezones/Europe/Vienna.ts b/src/timezones/Europe/Vienna.ts index 0776372..5e9bbb2 100644 --- a/src/timezones/Europe/Vienna.ts +++ b/src/timezones/Europe/Vienna.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Vienna' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Vienna', gmt_offset: [7200, 3921, 3600] diff --git a/src/timezones/Europe/Vilnius.ts b/src/timezones/Europe/Vilnius.ts index 9c6a229..ec22353 100644 --- a/src/timezones/Europe/Vilnius.ts +++ b/src/timezones/Europe/Vilnius.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Vilnius' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Vilnius', gmt_offset: [14400, 10800, 7200, 6076, 5736, 5040, 3600] diff --git a/src/timezones/Europe/Volgograd.ts b/src/timezones/Europe/Volgograd.ts index e344ee7..95a4c40 100644 --- a/src/timezones/Europe/Volgograd.ts +++ b/src/timezones/Europe/Volgograd.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Volgograd' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Volgograd', gmt_offset: [18000, 14400, 10800, 10660] diff --git a/src/timezones/Europe/Warsaw.ts b/src/timezones/Europe/Warsaw.ts index 4dd9231..bc54621 100644 --- a/src/timezones/Europe/Warsaw.ts +++ b/src/timezones/Europe/Warsaw.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Warsaw' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Warsaw', gmt_offset: [10800, 7200, 5040, 3600] diff --git a/src/timezones/Europe/Zagreb.ts b/src/timezones/Europe/Zagreb.ts index 0b73d91..6866188 100644 --- a/src/timezones/Europe/Zagreb.ts +++ b/src/timezones/Europe/Zagreb.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Zagreb' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Zagreb', gmt_offset: [7200, 3832, 3600] diff --git a/src/timezones/Europe/Zurich.ts b/src/timezones/Europe/Zurich.ts index ba24600..8293654 100644 --- a/src/timezones/Europe/Zurich.ts +++ b/src/timezones/Europe/Zurich.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Europe/Zurich' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Europe/Zurich', gmt_offset: [7200, 3600, 2048, 1786] diff --git a/src/timezones/Indian/Antananarivo.ts b/src/timezones/Indian/Antananarivo.ts index d1d6f00..af9e9b6 100644 --- a/src/timezones/Indian/Antananarivo.ts +++ b/src/timezones/Indian/Antananarivo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Antananarivo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Antananarivo', gmt_offset: [14400, 11404, 10800] diff --git a/src/timezones/Indian/Chagos.ts b/src/timezones/Indian/Chagos.ts index bc7b164..c35da34 100644 --- a/src/timezones/Indian/Chagos.ts +++ b/src/timezones/Indian/Chagos.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Chagos' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Chagos', gmt_offset: [21600, 18000, 17380] diff --git a/src/timezones/Indian/Christmas.ts b/src/timezones/Indian/Christmas.ts index 3378f82..a07378b 100644 --- a/src/timezones/Indian/Christmas.ts +++ b/src/timezones/Indian/Christmas.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Christmas' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Christmas', gmt_offset: [25372, 25200] diff --git a/src/timezones/Indian/Cocos.ts b/src/timezones/Indian/Cocos.ts index 42588b0..457b220 100644 --- a/src/timezones/Indian/Cocos.ts +++ b/src/timezones/Indian/Cocos.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Cocos' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Cocos', gmt_offset: [23400, 23260] diff --git a/src/timezones/Indian/Comoro.ts b/src/timezones/Indian/Comoro.ts index 6e613e9..b703d5d 100644 --- a/src/timezones/Indian/Comoro.ts +++ b/src/timezones/Indian/Comoro.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Comoro' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Comoro', gmt_offset: [10800, 10384] diff --git a/src/timezones/Indian/Kerguelen.ts b/src/timezones/Indian/Kerguelen.ts index 2c20736..e856a9d 100644 --- a/src/timezones/Indian/Kerguelen.ts +++ b/src/timezones/Indian/Kerguelen.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Kerguelen' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Kerguelen', gmt_offset: [18000, 0] diff --git a/src/timezones/Indian/Mahe.ts b/src/timezones/Indian/Mahe.ts index d860283..8f9d540 100644 --- a/src/timezones/Indian/Mahe.ts +++ b/src/timezones/Indian/Mahe.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Mahe' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Mahe', gmt_offset: [14400, 13308] diff --git a/src/timezones/Indian/Maldives.ts b/src/timezones/Indian/Maldives.ts index 42cd087..d5f8a83 100644 --- a/src/timezones/Indian/Maldives.ts +++ b/src/timezones/Indian/Maldives.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Maldives' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Maldives', gmt_offset: [18000, 17640] diff --git a/src/timezones/Indian/Mauritius.ts b/src/timezones/Indian/Mauritius.ts index 112833c..76cd3b1 100644 --- a/src/timezones/Indian/Mauritius.ts +++ b/src/timezones/Indian/Mauritius.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Mauritius' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Mauritius', gmt_offset: [18000, 14400, 13800] diff --git a/src/timezones/Indian/Mayotte.ts b/src/timezones/Indian/Mayotte.ts index 4ab141c..49b70ca 100644 --- a/src/timezones/Indian/Mayotte.ts +++ b/src/timezones/Indian/Mayotte.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Mayotte' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Mayotte', gmt_offset: [10856, 10800] diff --git a/src/timezones/Indian/Reunion.ts b/src/timezones/Indian/Reunion.ts index b0d0064..16a5c1d 100644 --- a/src/timezones/Indian/Reunion.ts +++ b/src/timezones/Indian/Reunion.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Indian/Reunion' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Indian/Reunion', gmt_offset: [14400, 13312] diff --git a/src/timezones/Pacific/Apia.ts b/src/timezones/Pacific/Apia.ts index a53da59..7f3d268 100644 --- a/src/timezones/Pacific/Apia.ts +++ b/src/timezones/Pacific/Apia.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Apia' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Apia', gmt_offset: [50400, 46800, 45184, -36000, -39600, -41216, -41400] diff --git a/src/timezones/Pacific/Auckland.ts b/src/timezones/Pacific/Auckland.ts index 419bbee..b1bd8b1 100644 --- a/src/timezones/Pacific/Auckland.ts +++ b/src/timezones/Pacific/Auckland.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Auckland' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Auckland', gmt_offset: [46800, 45000, 43200, 41944, 41400] diff --git a/src/timezones/Pacific/Bougainville.ts b/src/timezones/Pacific/Bougainville.ts index e830567..3f89aea 100644 --- a/src/timezones/Pacific/Bougainville.ts +++ b/src/timezones/Pacific/Bougainville.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Bougainville' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Bougainville', gmt_offset: [39600, 37336, 36000, 35312, 32400] diff --git a/src/timezones/Pacific/Chatham.ts b/src/timezones/Pacific/Chatham.ts index ff77de8..1a11bd6 100644 --- a/src/timezones/Pacific/Chatham.ts +++ b/src/timezones/Pacific/Chatham.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Chatham' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Chatham', gmt_offset: [49500, 45900, 44100, 44028] diff --git a/src/timezones/Pacific/Chuuk.ts b/src/timezones/Pacific/Chuuk.ts index fb1f859..cd4566b 100644 --- a/src/timezones/Pacific/Chuuk.ts +++ b/src/timezones/Pacific/Chuuk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Chuuk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Chuuk', gmt_offset: [36428, 36000, 32400, -49972] diff --git a/src/timezones/Pacific/Easter.ts b/src/timezones/Pacific/Easter.ts index 470b400..da482e4 100644 --- a/src/timezones/Pacific/Easter.ts +++ b/src/timezones/Pacific/Easter.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Easter' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Easter', gmt_offset: [-18000, -21600, -25200, -26248] diff --git a/src/timezones/Pacific/Efate.ts b/src/timezones/Pacific/Efate.ts index a0807ac..375a8ce 100644 --- a/src/timezones/Pacific/Efate.ts +++ b/src/timezones/Pacific/Efate.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Efate' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Efate', gmt_offset: [43200, 40396, 39600] diff --git a/src/timezones/Pacific/Fakaofo.ts b/src/timezones/Pacific/Fakaofo.ts index 33ed3e3..6059e05 100644 --- a/src/timezones/Pacific/Fakaofo.ts +++ b/src/timezones/Pacific/Fakaofo.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Fakaofo' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Fakaofo', gmt_offset: [46800, -39600, -41096] diff --git a/src/timezones/Pacific/Fiji.ts b/src/timezones/Pacific/Fiji.ts index 93fe66f..9ecaff6 100644 --- a/src/timezones/Pacific/Fiji.ts +++ b/src/timezones/Pacific/Fiji.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Fiji' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Fiji', gmt_offset: [46800, 43200, 42944] diff --git a/src/timezones/Pacific/Funafuti.ts b/src/timezones/Pacific/Funafuti.ts index 25104e5..be033e0 100644 --- a/src/timezones/Pacific/Funafuti.ts +++ b/src/timezones/Pacific/Funafuti.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Funafuti' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Funafuti', gmt_offset: [43200, 43012] diff --git a/src/timezones/Pacific/Galapagos.ts b/src/timezones/Pacific/Galapagos.ts index 3bead22..e753f0c 100644 --- a/src/timezones/Pacific/Galapagos.ts +++ b/src/timezones/Pacific/Galapagos.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Galapagos' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Galapagos', gmt_offset: [-18000, -21504, -21600] diff --git a/src/timezones/Pacific/Gambier.ts b/src/timezones/Pacific/Gambier.ts index ac4547c..faabf26 100644 --- a/src/timezones/Pacific/Gambier.ts +++ b/src/timezones/Pacific/Gambier.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Gambier' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Gambier', gmt_offset: [-32388, -32400] diff --git a/src/timezones/Pacific/Guadalcanal.ts b/src/timezones/Pacific/Guadalcanal.ts index 94d36bb..7c710e3 100644 --- a/src/timezones/Pacific/Guadalcanal.ts +++ b/src/timezones/Pacific/Guadalcanal.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Guadalcanal' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Guadalcanal', gmt_offset: [39600, 38388] diff --git a/src/timezones/Pacific/Guam.ts b/src/timezones/Pacific/Guam.ts index 9725df0..369b25d 100644 --- a/src/timezones/Pacific/Guam.ts +++ b/src/timezones/Pacific/Guam.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Guam' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Guam', gmt_offset: [39600, 36000, 34740, 32400, -51660] diff --git a/src/timezones/Pacific/Honolulu.ts b/src/timezones/Pacific/Honolulu.ts index 877b195..9c06e60 100644 --- a/src/timezones/Pacific/Honolulu.ts +++ b/src/timezones/Pacific/Honolulu.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Honolulu' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Honolulu', gmt_offset: [-34200, -36000, -37800, -37886] diff --git a/src/timezones/Pacific/Kanton.ts b/src/timezones/Pacific/Kanton.ts index 3b94531..be32751 100644 --- a/src/timezones/Pacific/Kanton.ts +++ b/src/timezones/Pacific/Kanton.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kanton' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Kanton', gmt_offset: [46800, 0, -39600, -43200] diff --git a/src/timezones/Pacific/Kiritimati.ts b/src/timezones/Pacific/Kiritimati.ts index 8bbcc01..950ebb1 100644 --- a/src/timezones/Pacific/Kiritimati.ts +++ b/src/timezones/Pacific/Kiritimati.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kiritimati' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Kiritimati', gmt_offset: [50400, -36000, -37760, -38400] diff --git a/src/timezones/Pacific/Kosrae.ts b/src/timezones/Pacific/Kosrae.ts index 0194076..499dfc7 100644 --- a/src/timezones/Pacific/Kosrae.ts +++ b/src/timezones/Pacific/Kosrae.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kosrae' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Kosrae', gmt_offset: [43200, 39600, 39116, 36000, 32400, -47284] diff --git a/src/timezones/Pacific/Kwajalein.ts b/src/timezones/Pacific/Kwajalein.ts index dae8e3b..10e29ed 100644 --- a/src/timezones/Pacific/Kwajalein.ts +++ b/src/timezones/Pacific/Kwajalein.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Kwajalein' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Kwajalein', gmt_offset: [43200, 40160, 39600, 36000, 32400, -43200] diff --git a/src/timezones/Pacific/Majuro.ts b/src/timezones/Pacific/Majuro.ts index a3bd87d..9ef8a60 100644 --- a/src/timezones/Pacific/Majuro.ts +++ b/src/timezones/Pacific/Majuro.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Majuro' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Majuro', gmt_offset: [43200, 41088, 39600, 36000, 32400] diff --git a/src/timezones/Pacific/Marquesas.ts b/src/timezones/Pacific/Marquesas.ts index 449e56a..d93609f 100644 --- a/src/timezones/Pacific/Marquesas.ts +++ b/src/timezones/Pacific/Marquesas.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Marquesas' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Marquesas', gmt_offset: [-33480, -34200] diff --git a/src/timezones/Pacific/Midway.ts b/src/timezones/Pacific/Midway.ts index 09b8db1..b40caec 100644 --- a/src/timezones/Pacific/Midway.ts +++ b/src/timezones/Pacific/Midway.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Midway' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Midway', gmt_offset: [-36000, -39600, -42568] diff --git a/src/timezones/Pacific/Nauru.ts b/src/timezones/Pacific/Nauru.ts index 8442a8b..65a5cbd 100644 --- a/src/timezones/Pacific/Nauru.ts +++ b/src/timezones/Pacific/Nauru.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Nauru' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Nauru', gmt_offset: [43200, 41400, 40060, 32400] diff --git a/src/timezones/Pacific/Niue.ts b/src/timezones/Pacific/Niue.ts index 744a89a..538a21b 100644 --- a/src/timezones/Pacific/Niue.ts +++ b/src/timezones/Pacific/Niue.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Niue' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Niue', gmt_offset: [-39600, -40780, -40800] diff --git a/src/timezones/Pacific/Norfolk.ts b/src/timezones/Pacific/Norfolk.ts index 9bd51f9..0c7b8b2 100644 --- a/src/timezones/Pacific/Norfolk.ts +++ b/src/timezones/Pacific/Norfolk.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Norfolk' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Norfolk', gmt_offset: [45000, 43200, 41400, 40320, 40312, 39600] diff --git a/src/timezones/Pacific/Noumea.ts b/src/timezones/Pacific/Noumea.ts index ac3edb4..d9cdc29 100644 --- a/src/timezones/Pacific/Noumea.ts +++ b/src/timezones/Pacific/Noumea.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Noumea' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Noumea', gmt_offset: [43200, 39948, 39600] diff --git a/src/timezones/Pacific/Pago_Pago.ts b/src/timezones/Pacific/Pago_Pago.ts index 9e68595..795c396 100644 --- a/src/timezones/Pacific/Pago_Pago.ts +++ b/src/timezones/Pacific/Pago_Pago.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Pago_Pago' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Pago_Pago', gmt_offset: [45432, -39600, -40968] diff --git a/src/timezones/Pacific/Palau.ts b/src/timezones/Pacific/Palau.ts index 649c7fe..3d2d5aa 100644 --- a/src/timezones/Pacific/Palau.ts +++ b/src/timezones/Pacific/Palau.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Palau' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Palau', gmt_offset: [32400, 32276, -54124] diff --git a/src/timezones/Pacific/Pitcairn.ts b/src/timezones/Pacific/Pitcairn.ts index 733761d..d9c089a 100644 --- a/src/timezones/Pacific/Pitcairn.ts +++ b/src/timezones/Pacific/Pitcairn.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Pitcairn' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Pitcairn', gmt_offset: [-28800, -30600, -31220] diff --git a/src/timezones/Pacific/Pohnpei.ts b/src/timezones/Pacific/Pohnpei.ts index 4747fe1..befbded 100644 --- a/src/timezones/Pacific/Pohnpei.ts +++ b/src/timezones/Pacific/Pohnpei.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Pohnpei' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Pohnpei', gmt_offset: [39600, 37972, 36000, 32400, -48428] diff --git a/src/timezones/Pacific/Port_Moresby.ts b/src/timezones/Pacific/Port_Moresby.ts index 5b4f096..07bba32 100644 --- a/src/timezones/Pacific/Port_Moresby.ts +++ b/src/timezones/Pacific/Port_Moresby.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Port_Moresby' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Port_Moresby', gmt_offset: [36000, 35320, 35312] diff --git a/src/timezones/Pacific/Rarotonga.ts b/src/timezones/Pacific/Rarotonga.ts index 94d9ee3..d91e17d 100644 --- a/src/timezones/Pacific/Rarotonga.ts +++ b/src/timezones/Pacific/Rarotonga.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Rarotonga' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Rarotonga', gmt_offset: [48056, -34200, -36000, -37800, -38344] diff --git a/src/timezones/Pacific/Saipan.ts b/src/timezones/Pacific/Saipan.ts index 588a040..ad1ab0a 100644 --- a/src/timezones/Pacific/Saipan.ts +++ b/src/timezones/Pacific/Saipan.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Saipan' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Saipan', gmt_offset: [39600, 36000, 34980, 32400, -51420] diff --git a/src/timezones/Pacific/Tahiti.ts b/src/timezones/Pacific/Tahiti.ts index 9ec5bce..d04382a 100644 --- a/src/timezones/Pacific/Tahiti.ts +++ b/src/timezones/Pacific/Tahiti.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Tahiti' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Tahiti', gmt_offset: [-35896, -36000] diff --git a/src/timezones/Pacific/Tarawa.ts b/src/timezones/Pacific/Tarawa.ts index 741f62e..bfff8f7 100644 --- a/src/timezones/Pacific/Tarawa.ts +++ b/src/timezones/Pacific/Tarawa.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Tarawa' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Tarawa', gmt_offset: [43200, 41524] diff --git a/src/timezones/Pacific/Tongatapu.ts b/src/timezones/Pacific/Tongatapu.ts index b3b1d8a..2315545 100644 --- a/src/timezones/Pacific/Tongatapu.ts +++ b/src/timezones/Pacific/Tongatapu.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Tongatapu' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Tongatapu', gmt_offset: [50400, 46800, 44400, 44352] diff --git a/src/timezones/Pacific/Wake.ts b/src/timezones/Pacific/Wake.ts index 31e9032..c24ba1c 100644 --- a/src/timezones/Pacific/Wake.ts +++ b/src/timezones/Pacific/Wake.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Wake' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Wake', gmt_offset: [43200, 39988] diff --git a/src/timezones/Pacific/Wallis.ts b/src/timezones/Pacific/Wallis.ts index 7dc1e4b..eda3256 100644 --- a/src/timezones/Pacific/Wallis.ts +++ b/src/timezones/Pacific/Wallis.ts @@ -1,3 +1,6 @@ +/** + * @deprecated Use the IANA time zone name string 'Pacific/Wallis' instead. Time zone objects will be removed in the next major version. + */ export default { zone_name: 'Pacific/Wallis', gmt_offset: [44120, 43200] diff --git a/src/utils.ts b/src/utils.ts index ae20dcf..af641b4 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -37,11 +37,9 @@ export function getDaysInMonth (date: Date): number; export function getDaysInMonth (year: number, month: number): number; export function getDaysInMonth (...args: [date: Date] | [year: number, month: number]) { - const [year, month] = ( - () => args.length === 1 - ? [args[0].getFullYear(), args[0].getMonth() + 1] - : args - )(); + const [year, month] = args.length === 1 + ? [args[0].getFullYear(), args[0].getMonth() + 1] + : args; // month is 1-indexed here; day 0 of next month = last day of current month return new Date(toUTC(year, month, 0)).getUTCDate(); } @@ -74,11 +72,9 @@ export function getISOWeekYear (date: Date): number; export function getISOWeekYear (year: number, month: number, day: number): number; export function getISOWeekYear (...args: [date: Date] | [year: number, month: number, day: number]) { - const [year, month, day] = ( - () => args.length === 1 - ? [args[0].getFullYear(), args[0].getMonth() + 1, args[0].getDate()] - : args - )(); + const [year, month, day] = args.length === 1 + ? [args[0].getFullYear(), args[0].getMonth() + 1, args[0].getDate()] + : args; // The ISO week year is the year that contains the Thursday of the week return getThursdayOfWeek(toUTC(year, month - 1, day)).getUTCFullYear(); } @@ -100,11 +96,9 @@ export function getISOWeek (date: Date): number; export function getISOWeek (year: number, month: number, day: number): number; export function getISOWeek (...args: [date: Date] | [year: number, month: number, day: number]) { - const [year, month, day] = ( - () => args.length === 1 - ? [args[0].getFullYear(), args[0].getMonth() + 1, args[0].getDate()] - : args - )(); + const [year, month, day] = args.length === 1 + ? [args[0].getFullYear(), args[0].getMonth() + 1, args[0].getDate()] + : args; const target = getThursdayOfWeek(toUTC(year, month - 1, day)); // Calculate the ISO week number by finding the difference in weeks between the target date // and the Thursday of the first week of the year (January 4th) diff --git a/src/zone.ts b/src/zone.ts index 62c91bb..06935ea 100644 --- a/src/zone.ts +++ b/src/zone.ts @@ -6,10 +6,19 @@ export interface TimeZone { gmt_offset: number[]; } -export const isTimeZone = (timeZone: unknown): timeZone is TimeZone => { +const isTimeZone = (timeZone: unknown): timeZone is TimeZone => { return !!timeZone && typeof timeZone === 'object' && 'zone_name' in timeZone && 'gmt_offset' in timeZone; }; +/** + * Normalizes a time zone option to its IANA time zone name. + * @param timeZone - A time zone object, an IANA time zone name, or undefined + * @returns The zone name, or undefined when no time zone is given + */ +export const toZoneName = (timeZone: TimeZone | string | undefined) => { + return isTimeZone(timeZone) ? timeZone.zone_name : timeZone; +}; + const getTimezoneOffset = (naiveUTC: number, zoneName: string): number => { const dtf = getDateTimeFormat(zoneName); const set = new Set(); @@ -39,7 +48,6 @@ const getTimezoneOffset = (naiveUTC: number, zoneName: string): number => { return NaN; }; -export const createTimezoneDate = (naiveUTC: number, timeZone: TimeZone | string) => { - const zoneName = isTimeZone(timeZone) ? timeZone.zone_name : timeZone; +export const createTimezoneDate = (naiveUTC: number, zoneName: string) => { return new Date(naiveUTC - getTimezoneOffset(naiveUTC, zoneName)); }; diff --git a/tests/addDays.spec.ts b/tests/addDays.spec.ts index 49bb138..76d6873 100644 --- a/tests/addDays.spec.ts +++ b/tests/addDays.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { expect, test, describe, beforeAll } from 'vitest'; import { addDays } from '@/index.ts'; import Los_Angeles from '@/timezones/America/Los_Angeles.ts'; diff --git a/tests/addMonths.spec.ts b/tests/addMonths.spec.ts index 7bc6198..645c279 100644 --- a/tests/addMonths.spec.ts +++ b/tests/addMonths.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { expect, test, describe, beforeAll } from 'vitest'; import { addMonths } from '@/index.ts'; import Los_Angeles from '@/timezones/America/Los_Angeles.ts'; diff --git a/tests/addYears.spec.ts b/tests/addYears.spec.ts index 84868c2..b51957b 100644 --- a/tests/addYears.spec.ts +++ b/tests/addYears.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { expect, test, describe, beforeAll } from 'vitest'; import { addYears } from '@/index.ts'; import Los_Angeles from '@/timezones/America/Los_Angeles.ts'; diff --git a/tests/compile.spec.ts b/tests/compile.spec.ts index 9d60db9..4f92108 100644 --- a/tests/compile.spec.ts +++ b/tests/compile.spec.ts @@ -175,3 +175,8 @@ test('\\[YYYY-MM-DD\\]', () => { const obj = ['\\[YYYY-MM-DD\\]', '[', 'YYYY', '-', 'MM', '-', 'DD', ']']; expect(compile('\\[YYYY-MM-DD\\]')).toEqual(obj); }); + +test('line breaks outside brackets', () => { + const obj = ['YYYY\nMM\r\nDD\u2028HH', 'YYYY', '\n', 'MM', '\r', '\n', 'DD', '\u2028', 'HH']; + expect(compile('YYYY\nMM\r\nDD\u2028HH')).toEqual(obj); +}); diff --git a/tests/format.spec.ts b/tests/format.spec.ts index 7250162..4c82622 100644 --- a/tests/format.spec.ts +++ b/tests/format.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { describe, expect, test, beforeAll } from 'vitest'; import { format, compile, parse } from '@/index.ts'; import Abidjan from '@/timezones/Africa/Abidjan.ts'; @@ -881,3 +882,11 @@ describe('comments spanning line breaks', () => { expect(format(now, '[a\nb] YYYY')).toBe('a\nb 2000'); }); }); + +describe('line breaks outside brackets', () => { + beforeAll(() => (process.env.TZ = 'UTC')); + + test('a line break is output as is', () => { + expect(format(new Date(2000, 0, 1), 'YYYY\nMM')).toBe('2000\n01'); + }); +}); diff --git a/tests/ignoreCase.spec.ts b/tests/ignoreCase.spec.ts new file mode 100644 index 0000000..59a3af4 --- /dev/null +++ b/tests/ignoreCase.spec.ts @@ -0,0 +1,46 @@ +import { describe, expect, test } from 'vitest'; +import { readdir } from 'node:fs/promises'; +import { join } from 'node:path'; +import { format, isValid, parse } from '@/index.ts'; +import { parser } from '@/plugins/day-of-week.ts'; +import type { Locale } from '@/locale.ts'; + +const importLocales = async () => { + const names = (await readdir('src/locales')).filter(name => name.endsWith('.ts')).sort(); + const locales: Locale[] = []; + + for (const name of names) { + locales.push((await import(join('../src/locales', name)) as { default: Locale }).default); + } + return locales; +}; + +describe('ignoreCase reads upper-cased names', async () => { + const locales = await importLocales(); + + for (const locale of locales) { + const code = locale.getLocale(); + const upper = (str: string) => str.toLocaleUpperCase(code); + + test(code, () => { + for (const token of ['MMMM', 'MMM']) { + for (let month = 0; month < 12; month++) { + const name = format(new Date(1970, month, 1), token, { locale }); + expect(parse(upper(name), token, { locale, ignoreCase: true }).getMonth()).toBe(month); + } + } + for (const token of ['dddd', 'ddd', 'dd']) { + for (let day = 0; day < 7; day++) { + const name = format(new Date(1970, 0, 4 + day), token, { locale }); + expect(isValid(upper(name), token, { locale, ignoreCase: true, plugins: [parser] })).toBe(true); + } + } + for (const token of ['A', 'AA', 'a', 'aa']) { + for (const hour of [0, 12]) { + const name = format(new Date(1970, 0, 1, hour), token, { locale }); + expect(parse(upper(name), token, { locale, ignoreCase: true }).getHours()).toBe(hour); + } + } + }); + } +}); diff --git a/tests/isValid.spec.ts b/tests/isValid.spec.ts index 5a8efcf..84d0505 100644 --- a/tests/isValid.spec.ts +++ b/tests/isValid.spec.ts @@ -1,5 +1,5 @@ import { describe, expect, test, beforeAll } from 'vitest'; -import { isValid, compile, format } from '@/index.ts'; +import { isValid, compile } from '@/index.ts'; import { parser } from '@/plugins/day-of-week.ts'; beforeAll(() => (process.env.TZ = 'UTC')); @@ -174,16 +174,14 @@ describe('options', () => { expect(isValid('0543-01-01 12:00 AM', 'YYYY-MM-DD hh:mm A', { calendar: 'buddhist' })).toBe(false); }); - test('timeZone: min', () => { - process.env.TZ = 'America/Metlakatla'; - const dateString = format(new Date(-3225223728000), 'YYYY-MM-DD[T]HH:mm:ss ZZ'); - expect(isValid(dateString, 'YYYY-MM-DD[T]HH:mm:ss ZZ')).toBe(true); + test('offset: eastern bound', () => { + expect(isValid('1867-10-19T15:44:54 +15:13', 'YYYY-MM-DD[T]HH:mm:ss ZZ')).toBe(true); + expect(isValid('1867-10-19T15:44:54 +15:14', 'YYYY-MM-DD[T]HH:mm:ss ZZ')).toBe(false); }); - test('timeZone: max', () => { - process.env.TZ = 'Asia/Manila'; - const dateString = format(new Date(-3944621033000), 'YYYY-MM-DD[T]HH:mm:ss ZZ'); - expect(isValid(dateString, 'YYYY-MM-DD[T]HH:mm:ss ZZ')).toBe(true); + test('offset: western bound', () => { + expect(isValid('1844-12-30T23:59:59 -15:56', 'YYYY-MM-DD[T]HH:mm:ss ZZ')).toBe(true); + expect(isValid('1844-12-30T23:59:59 -15:57', 'YYYY-MM-DD[T]HH:mm:ss ZZ')).toBe(false); }); test('defaultDate: year for leap day validation', () => { @@ -218,3 +216,27 @@ describe('comments spanning line breaks', () => { expect(isValid('a\nb 2000', '[a\nb] YYYY')).toBe(true); }); }); + +describe('line breaks outside brackets', () => { + test('a line break must match the input', () => { + expect(isValid('2000\n01', 'YYYY\nMM')).toBe(true); + expect(isValid('200001', 'YYYY\nMM')).toBe(false); + }); +}); + +describe('unknown time zone', () => { + test('fails without an offset', () => { + expect(isValid('2025-01-01', 'YYYY-MM-DD', { timeZone: 'Invalid/Zone' })).toBe(false); + expect(isValid('2025-01-01', 'YYYY-MM-DD', { timeZone: { zone_name: 'Invalid/Zone', gmt_offset: [0] } })).toBe(false); + }); + + test('an offset makes the zone irrelevant', () => { + expect(isValid('2025-01-01 +0900', 'YYYY-MM-DD Z', { timeZone: 'Invalid/Zone' })).toBe(true); + expect(isValid('2025-01-01', 'YYYY-MM-DD', { timeZone: 'Invalid/Zone', defaultDate: { Z: 0 } })).toBe(true); + }); + + test('known zones are valid', () => { + expect(isValid('2025-01-01', 'YYYY-MM-DD', { timeZone: 'Asia/Tokyo' })).toBe(true); + expect(isValid('2025-01-01', 'YYYY-MM-DD', { timeZone: 'utc' })).toBe(true); + }); +}); diff --git a/tests/locales/ar.spec.ts b/tests/locales/ar.spec.ts index f418928..6e55880 100644 --- a/tests/locales/ar.spec.ts +++ b/tests/locales/ar.spec.ts @@ -24,13 +24,6 @@ describe('formatter', () => { }); }); - test('MMMM', () => { - locale.MMMM.forEach((v, i) => { - const d = new Date(1970, i, 1); - expect(format(d, 'MMMM', { locale: lo })).toBe(v); - }); - }); - test('MMM', () => { locale.MMM.forEach((v, i) => { const d = new Date(1970, i, 1); diff --git a/tests/numerals/arab.spec.ts b/tests/numerals/arab.spec.ts index b646686..45db2b6 100644 --- a/tests/numerals/arab.spec.ts +++ b/tests/numerals/arab.spec.ts @@ -1,4 +1,5 @@ import { describe, expect, test } from 'vitest'; +import { Duration, format, parse } from '@/index.ts'; import numeral from '@/numerals/arab.ts'; describe('arab', () => { @@ -9,4 +10,16 @@ describe('arab', () => { test('decode', () => { expect(numeral.decode('٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩')).toBe('0 1 2 3 4 5 6 7 8 9'); }); + + test('format', () => { + expect(format(new Date(2025, 7, 23, 14, 5), 'DD/MM/YYYY HH:mm', { numeral })).toBe('٢٣/٠٨/٢٠٢٥ ١٤:٠٥'); + }); + + test('parse', () => { + expect(parse('٢٣/٠٨/٢٠٢٥ ١٤:٠٥', 'DD/MM/YYYY HH:mm', { numeral })).toEqual(new Date(2025, 7, 23, 14, 5)); + }); + + test('Duration format', () => { + expect(new Duration(3723000).toHours().format('H:mm:ss', numeral)).toBe('١:٠٢:٠٣'); + }); }); diff --git a/tests/parse.spec.ts b/tests/parse.spec.ts index c08bdc9..59b3e73 100644 --- a/tests/parse.spec.ts +++ b/tests/parse.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { describe, expect, test, beforeAll } from 'vitest'; import { compile, parse } from '@/index.ts'; import { parser } from '@/plugins/day-of-week.ts'; @@ -1016,3 +1017,16 @@ describe('timeZone Manila', () => { expect(parse(dateString, formatString, { timeZone: 'Asia/Manila' }).getTime()).toBe(dateObj.getTime()); }); }); + +describe('hour tokens', () => { + beforeAll(() => (process.env.TZ = 'UTC')); + + test('H takes precedence over h and A', () => { + expect(parse('05 PM', 'HH A')).toEqual(new Date(1970, 0, 1, 5)); + expect(parse('13 3 PM', 'H h A').getHours()).toBe(13); + }); + + test('A alone reads 0 or 12', () => { + expect(parse('PM', 'A')).toEqual(new Date(1970, 0, 1, 12)); + }); +}); diff --git a/tests/plugins/day-of-week.spec.ts b/tests/plugins/day-of-week.spec.ts new file mode 100644 index 0000000..41f5c51 --- /dev/null +++ b/tests/plugins/day-of-week.spec.ts @@ -0,0 +1,26 @@ +import { expect, test } from 'vitest'; +import { isValid, parse, preparse } from '@/index.ts'; +import { parser } from '@/plugins/day-of-week.ts'; + +test('dddd, ddd, and dd read a weekday name', () => { + expect(isValid('Saturday', 'dddd', { plugins: [parser] })).toBe(true); + expect(isValid('Sat', 'ddd', { plugins: [parser] })).toBe(true); + expect(isValid('Sa', 'dd', { plugins: [parser] })).toBe(true); +}); + +test('the weekday sets no date component', () => { + const dt = { Y: 2025, M: 8, D: 23, _index: 19, _length: 19, _match: 4 }; + expect(preparse('Saturday 2025-08-23', 'dddd YYYY-MM-DD', { plugins: [parser] })).toEqual(dt); +}); + +test('a weekday that disagrees with the date is not checked', () => { + expect(parse('Monday 2025-08-23', 'dddd YYYY-MM-DD', { plugins: [parser] })).toEqual(new Date(2025, 7, 23)); +}); + +test('an unknown weekday name fails', () => { + expect(isValid('Caturday', 'dddd', { plugins: [parser] })).toBe(false); +}); + +test('without the plugin, a weekday token does not parse', () => { + expect(isValid('Saturday', 'dddd')).toBe(false); +}); diff --git a/tests/plugins/zonename.spec.ts b/tests/plugins/zonename.spec.ts index 77b664a..45ae57d 100644 --- a/tests/plugins/zonename.spec.ts +++ b/tests/plugins/zonename.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { describe, expect, test, beforeAll } from 'vitest'; import { format } from '@/index.ts'; import { formatter as zonename } from '@/plugins/zonename.ts'; diff --git a/tests/preparse.spec.ts b/tests/preparse.spec.ts index e64592d..9b55a03 100644 --- a/tests/preparse.spec.ts +++ b/tests/preparse.spec.ts @@ -136,12 +136,12 @@ describe('MMMM', () => { }); describe('MMM', () => { - test('January', () => { + test('Jan', () => { const dt = { M: 1, _index: 3, _length: 3, _match: 1 }; expect(preparse('Jan', 'MMM')).toEqual(dt); }); - test('December', () => { + test('Dec', () => { const dt = { M: 12, _index: 3, _length: 3, _match: 1 }; expect(preparse('Dec', 'MMM')).toEqual(dt); }); @@ -534,60 +534,24 @@ describe('incomplete input', () => { }); describe('options', () => { - test('hour12: h11', () => { - const dt1 = { Y: 2000, M: 1, D: 1, A: 0, h: 0, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 00:00 AM', 'YYYY-MM-DD hh:mm A', { hour12: 'h11' })).toEqual(dt1); - - const dt2 = { Y: 2000, M: 1, D: 1, A: 0, h: 11, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 11:00 AM', 'YYYY-MM-DD hh:mm A', { hour12: 'h11' })).toEqual(dt2); - - const dt3 = { Y: 2000, M: 1, D: 1, A: 1, h: 12, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 12:00 PM', 'YYYY-MM-DD hh:mm A', { hour12: 'h11' })).toEqual(dt3); - - const dt4 = { Y: 2000, M: 1, D: 1, A: 1, h: 11, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 11:00 PM', 'YYYY-MM-DD hh:mm A', { hour12: 'h11' })).toEqual(dt4); - }); - - test('hour12: h12', () => { - const dt1 = { Y: 2000, M: 1, D: 1, A: 0, h: 12, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 12:00 AM', 'YYYY-MM-DD hh:mm A', { hour12: 'h12' })).toEqual(dt1); - - const dt2 = { Y: 2000, M: 1, D: 1, A: 0, h: 11, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 11:00 AM', 'YYYY-MM-DD hh:mm A', { hour12: 'h12' })).toEqual(dt2); + test('hour12 does not change the values read', () => { + for (const hour12 of ['h11', 'h12'] as const) { + const dt1 = { Y: 2000, M: 1, D: 1, A: 0, h: 0, m: 0, _index: 19, _length: 19, _match: 6 }; + expect(preparse('2000-01-01 00:00 AM', 'YYYY-MM-DD hh:mm A', { hour12 })).toEqual(dt1); - const dt3 = { Y: 2000, M: 1, D: 1, A: 1, h: 12, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 12:00 PM', 'YYYY-MM-DD hh:mm A', { hour12: 'h12' })).toEqual(dt3); - - const dt4 = { Y: 2000, M: 1, D: 1, A: 1, h: 11, m: 0, _index: 19, _length: 19, _match: 6 }; - expect(preparse('2000-01-01 11:00 PM', 'YYYY-MM-DD hh:mm A', { hour12: 'h12' })).toEqual(dt4); - }); - - test('hour24: h23', () => { - const dt1 = { Y: 2000, M: 1, D: 1, H: 0, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 00:00', 'YYYY-MM-DD HH:mm', { hour24: 'h23' })).toEqual(dt1); - - const dt2 = { Y: 2000, M: 1, D: 1, H: 1, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 01:00', 'YYYY-MM-DD HH:mm', { hour24: 'h23' })).toEqual(dt2); - - const dt3 = { Y: 2000, M: 1, D: 1, H: 23, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 23:00', 'YYYY-MM-DD HH:mm', { hour24: 'h23' })).toEqual(dt3); - - const dt4 = { Y: 2000, M: 1, D: 1, H: 24, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 24:00', 'YYYY-MM-DD HH:mm', { hour24: 'h23' })).toEqual(dt4); + const dt2 = { Y: 2000, M: 1, D: 1, A: 1, h: 12, m: 0, _index: 19, _length: 19, _match: 6 }; + expect(preparse('2000-01-01 12:00 PM', 'YYYY-MM-DD hh:mm A', { hour12 })).toEqual(dt2); + } }); - test('hour24: h24', () => { - const dt1 = { Y: 2000, M: 1, D: 1, H: 0, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 00:00', 'YYYY-MM-DD HH:mm', { hour24: 'h24' })).toEqual(dt1); - - const dt2 = { Y: 2000, M: 1, D: 1, H: 1, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 01:00', 'YYYY-MM-DD HH:mm', { hour24: 'h24' })).toEqual(dt2); - - const dt3 = { Y: 2000, M: 1, D: 1, H: 23, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 23:00', 'YYYY-MM-DD HH:mm', { hour24: 'h24' })).toEqual(dt3); + test('hour24 does not change the values read', () => { + for (const hour24 of ['h23', 'h24'] as const) { + const dt1 = { Y: 2000, M: 1, D: 1, H: 0, m: 0, _index: 16, _length: 16, _match: 5 }; + expect(preparse('2000-01-01 00:00', 'YYYY-MM-DD HH:mm', { hour24 })).toEqual(dt1); - const dt4 = { Y: 2000, M: 1, D: 1, H: 24, m: 0, _index: 16, _length: 16, _match: 5 }; - expect(preparse('2000-01-01 24:00', 'YYYY-MM-DD HH:mm', { hour24: 'h24' })).toEqual(dt4); + const dt2 = { Y: 2000, M: 1, D: 1, H: 24, m: 0, _index: 16, _length: 16, _match: 5 }; + expect(preparse('2000-01-01 24:00', 'YYYY-MM-DD HH:mm', { hour24 })).toEqual(dt2); + } }); test('ignoreCase: true', () => { diff --git a/tests/subtract.spec.ts b/tests/subtract.spec.ts index 04ec02a..fab829f 100644 --- a/tests/subtract.spec.ts +++ b/tests/subtract.spec.ts @@ -370,9 +370,9 @@ describe('subtraction', () => { const date1 = new Date(2025, 6, 13, 8, 42, 53, 998); const date2 = new Date(2025, 6, 14, 9, 43, 54, 999); - expect(subtract(date1, date2).toDays().format('D[days] H[hours] m[minites] s[seconds] S.fffFFF')).toBe('1days 1hours 1minites 1seconds 1.000000'); - expect(subtract(date1, date2).toHours().format('H[hours] m[minites] s[seconds] S.fffFFF')).toBe('25hours 1minites 1seconds 1.000000'); - expect(subtract(date1, date2).toMinutes().format('m[minites] s[seconds] S.fffFFF')).toBe('1501minites 1seconds 1.000000'); + expect(subtract(date1, date2).toDays().format('D[days] H[hours] m[minutes] s[seconds] S.fffFFF')).toBe('1days 1hours 1minutes 1seconds 1.000000'); + expect(subtract(date1, date2).toHours().format('H[hours] m[minutes] s[seconds] S.fffFFF')).toBe('25hours 1minutes 1seconds 1.000000'); + expect(subtract(date1, date2).toMinutes().format('m[minutes] s[seconds] S.fffFFF')).toBe('1501minutes 1seconds 1.000000'); expect(subtract(date1, date2).toSeconds().format('s[seconds] S.fffFFF')).toBe('90061seconds 1.000000'); expect(subtract(date1, date2).toMilliseconds().format('S.fffFFF')).toBe('90061001.000000'); expect(subtract(date1, date2).toMicroseconds().format('f.FFF')).toBe('90061001000.000'); @@ -383,9 +383,9 @@ describe('subtraction', () => { const date1 = new Date(2025, 6, 13, 8, 42, 53, 998); const date2 = new Date(2025, 6, 14, 9, 43, 54, 999); - expect(subtract(date2, date1).toDays().format('D[days] H[hours] m[minites] s[seconds] S.fffFFF')).toBe('-1days 1hours 1minites 1seconds 1.000000'); - expect(subtract(date2, date1).toHours().format('H[hours] m[minites] s[seconds] S.fffFFF')).toBe('-25hours 1minites 1seconds 1.000000'); - expect(subtract(date2, date1).toMinutes().format('m[minites] s[seconds] S.fffFFF')).toBe('-1501minites 1seconds 1.000000'); + expect(subtract(date2, date1).toDays().format('D[days] H[hours] m[minutes] s[seconds] S.fffFFF')).toBe('-1days 1hours 1minutes 1seconds 1.000000'); + expect(subtract(date2, date1).toHours().format('H[hours] m[minutes] s[seconds] S.fffFFF')).toBe('-25hours 1minutes 1seconds 1.000000'); + expect(subtract(date2, date1).toMinutes().format('m[minutes] s[seconds] S.fffFFF')).toBe('-1501minutes 1seconds 1.000000'); expect(subtract(date2, date1).toSeconds().format('s[seconds] S.fffFFF')).toBe('-90061seconds 1.000000'); expect(subtract(date2, date1).toMilliseconds().format('S.fffFFF')).toBe('-90061001.000000'); expect(subtract(date2, date1).toMicroseconds().format('f.FFF')).toBe('-90061001000.000'); diff --git a/tests/timezones/timezones.spec.ts b/tests/timezones/timezones.spec.ts index e3f669a..26169c7 100644 --- a/tests/timezones/timezones.spec.ts +++ b/tests/timezones/timezones.spec.ts @@ -19,7 +19,7 @@ describe('Timezones', async () => { const modules = await importModules('src/timezones/'); for (const module of modules) { - test.concurrent('timezone', () => { + test.concurrent(module.zone_name, () => { expect(typeof module === 'object').toBe(true); expect('zone_name' in module).toBe(true); diff --git a/tests/transform.spec.ts b/tests/transform.spec.ts index ef58f35..fd02f24 100644 --- a/tests/transform.spec.ts +++ b/tests/transform.spec.ts @@ -1,3 +1,4 @@ +/* eslint-disable @typescript-eslint/no-deprecated -- these tests exercise the deprecated TimeZone objects */ import { describe, expect, test, beforeAll } from 'vitest'; import { compile, format, transform } from '@/index.ts'; import Los_Angeles from '@/timezones/America/Los_Angeles.ts'; diff --git a/tools/timezone.ts b/tools/timezone.ts index 6ef5d6d..155e56e 100644 --- a/tools/timezone.ts +++ b/tools/timezone.ts @@ -38,8 +38,13 @@ const getPath = (timezone: TimeZone) => { }; }; +const deprecated = (zoneName: string) => `/** + * @deprecated Use the IANA time zone name string '${zoneName}' instead. Time zone objects will be removed in the next major version. + */`; + const format = (timezone: TimeZone) => { - const code = `export default { + const code = `${deprecated(timezone.zone_name)} +export default { zone_name: '${timezone.zone_name}', gmt_offset: ${JSON.stringify(timezone.gmt_offset.sort((a, b) => b - a))} };`; @@ -58,7 +63,8 @@ const formatAll = (map: Map) => { for (const timezone of sortMap(map)) { const name = getPath(timezone).name.replace(/-/g, '_'); - code.push(`export const ${name}: TimeZone = { + code.push(`${deprecated(timezone.zone_name)} +export const ${name}: TimeZone = { zone_name: '${timezone.zone_name}', gmt_offset: ${JSON.stringify(timezone.gmt_offset.sort((a, b) => b - a))} };`); diff --git a/tsconfig.json b/tsconfig.json index b2330d4..42b34a9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -49,15 +49,15 @@ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ /* Emit */ - "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ + // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ // "declarationMap": true, /* Create sourcemaps for d.ts files. */ - "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ + // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ // "outDir": "./", /* Specify an output folder for all emitted files. */ // "removeComments": true, /* Disable emitting comments. */ - // "noEmit": true, /* Disable emitting files from a compilation. */ + "noEmit": true, /* Disable emitting files from a compilation. */ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ diff --git a/vitest.config.ts b/vitest.config.ts index 4efc539..ca2556c 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -1,5 +1,5 @@ import { defineConfig } from 'vitest/config'; -import { resolve } from 'path'; +import { resolve } from 'node:path'; export default defineConfig({ resolve: { @@ -9,7 +9,6 @@ export default defineConfig({ }, test: { coverage: { - exclude: ['src/**/*.d.ts'], include: ['src/**/*.ts'], provider: 'v8', reporter: ['html', 'lcov']