// generated by diplomat-tool import type { DataProvider } from "./DataProvider" import type { DateTimeFormatter } from "./DateTimeFormatter" import type { DateTimeFormatterLoadError } from "./DateTimeFormatterLoadError" import type { DateTimeWriteError } from "./DateTimeWriteError" import type { IsoDate } from "./IsoDate" import type { Locale } from "./Locale" import type { Time } from "./Time" import type { TimeZoneInfo } from "./TimeZoneInfo" import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; /** * See the [Rust documentation for `DateTimeFormatter`](https://docs.rs/icu/2.1.1/icu/datetime/struct.DateTimeFormatter.html) for more information. */ export class ZonedDateTimeFormatter { /** @internal */ get ffiValue(): pointer; /** @internal */ constructor(); /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `SpecificLong`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.SpecificLong.html) for more information. */ static createSpecificLong(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `SpecificLong`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.SpecificLong.html) for more information. */ static createSpecificLongWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `SpecificShort`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.SpecificShort.html) for more information. */ static createSpecificShort(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `SpecificShort`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.SpecificShort.html) for more information. */ static createSpecificShortWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `LocalizedOffsetLong`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.LocalizedOffsetLong.html) for more information. */ static createLocalizedOffsetLong(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `LocalizedOffsetLong`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.LocalizedOffsetLong.html) for more information. */ static createLocalizedOffsetLongWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `LocalizedOffsetShort`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.LocalizedOffsetShort.html) for more information. */ static createLocalizedOffsetShort(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `LocalizedOffsetShort`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.LocalizedOffsetShort.html) for more information. */ static createLocalizedOffsetShortWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `GenericLong`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.GenericLong.html) for more information. */ static createGenericLong(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `GenericLong`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.GenericLong.html) for more information. */ static createGenericLongWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `GenericShort`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.GenericShort.html) for more information. */ static createGenericShort(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `GenericShort`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.GenericShort.html) for more information. */ static createGenericShortWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `Location`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.Location.html) for more information. */ static createLocation(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `Location`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.Location.html) for more information. */ static createLocationWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `ExemplarCity`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.ExemplarCity.html) for more information. */ static createExemplarCity(locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * Creates a zoned formatter based on a non-zoned formatter. * * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, * or else unexpected behavior may occur! * * See the [Rust documentation for `ExemplarCity`](https://docs.rs/icu/2.1.1/icu/datetime/fieldsets/zone/struct.ExemplarCity.html) for more information. */ static createExemplarCityWithProvider(provider: DataProvider, locale: Locale, formatter: DateTimeFormatter): ZonedDateTimeFormatter; /** * See the [Rust documentation for `format`](https://docs.rs/icu/2.1.1/icu/datetime/struct.DateTimeFormatter.html#method.format) for more information. */ formatIso(isoDate: IsoDate, time: Time, zone: TimeZoneInfo): string; }