1// generated by diplomat-tool 2import type { DataProvider } from "./DataProvider" 3import type { Date } from "./Date" 4import type { DateTimeFormatError } from "./DateTimeFormatError" 5import type { DateTimeFormatterLoadError } from "./DateTimeFormatterLoadError" 6import type { DateTimeLength } from "./DateTimeLength" 7import type { IsoDate } from "./IsoDate" 8import type { Locale } from "./Locale" 9import type { Time } from "./Time" 10import type { TimeZoneInfo } from "./TimeZoneInfo" 11import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 12 13 14/** An object capable of formatting a date time with time zone to a string. 15* 16*See the [Rust documentation for `DateTimeFormatter`](https://docs.rs/icu/latest/icu/datetime/struct.DateTimeFormatter.html) for more information. 17* 18*Additional information: [1](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.YMDT.html), [2](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.GenericShort.html) 19*/ 20 21 22export class ZonedDateTimeFormatter { 23 24 get ffiValue(): pointer; 25 26 static createWithLength(locale: Locale, length: DateTimeLength): ZonedDateTimeFormatter; 27 28 static createWithLengthAndProvider(provider: DataProvider, locale: Locale, length: DateTimeLength): ZonedDateTimeFormatter; 29 30 format(date: Date, time: Time, zone: TimeZoneInfo): string; 31 32 formatIso(date: IsoDate, time: Time, zone: TimeZoneInfo): string; 33}