ZonedDateFormatterGregorian.d.ts (9623B)
1 // generated by diplomat-tool 2 import type { DataProvider } from "./DataProvider" 3 import type { DateFormatterGregorian } from "./DateFormatterGregorian" 4 import type { DateTimeFormatterLoadError } from "./DateTimeFormatterLoadError" 5 import type { DateTimeWriteError } from "./DateTimeWriteError" 6 import type { IsoDate } from "./IsoDate" 7 import type { Locale } from "./Locale" 8 import type { TimeZoneInfo } from "./TimeZoneInfo" 9 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 10 11 12 /** 13 * See the [Rust documentation for `FixedCalendarDateTimeFormatter`](https://docs.rs/icu/latest/icu/datetime/struct.FixedCalendarDateTimeFormatter.html) for more information. 14 */ 15 16 17 export class ZonedDateFormatterGregorian { 18 get ffiValue(): pointer; 19 20 21 /** 22 * Creates a zoned formatter based on a non-zoned formatter. 23 * 24 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 25 * or else unexpected behavior may occur! 26 * 27 * See the [Rust documentation for `SpecificLong`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.SpecificLong.html) for more information. 28 */ 29 static createSpecificLong(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 30 31 /** 32 * Creates a zoned formatter based on a non-zoned formatter. 33 * 34 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 35 * or else unexpected behavior may occur! 36 * 37 * See the [Rust documentation for `SpecificLong`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.SpecificLong.html) for more information. 38 */ 39 static createSpecificLongWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 40 41 /** 42 * Creates a zoned formatter based on a non-zoned formatter. 43 * 44 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 45 * or else unexpected behavior may occur! 46 * 47 * See the [Rust documentation for `SpecificShort`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.SpecificShort.html) for more information. 48 */ 49 static createSpecificShort(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 50 51 /** 52 * Creates a zoned formatter based on a non-zoned formatter. 53 * 54 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 55 * or else unexpected behavior may occur! 56 * 57 * See the [Rust documentation for `SpecificShort`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.SpecificShort.html) for more information. 58 */ 59 static createSpecificShortWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 60 61 /** 62 * Creates a zoned formatter based on a non-zoned formatter. 63 * 64 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 65 * or else unexpected behavior may occur! 66 * 67 * See the [Rust documentation for `LocalizedOffsetLong`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.LocalizedOffsetLong.html) for more information. 68 */ 69 static createLocalizedOffsetLong(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 70 71 /** 72 * Creates a zoned formatter based on a non-zoned formatter. 73 * 74 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 75 * or else unexpected behavior may occur! 76 * 77 * See the [Rust documentation for `LocalizedOffsetLong`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.LocalizedOffsetLong.html) for more information. 78 */ 79 static createLocalizedOffsetLongWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 80 81 /** 82 * Creates a zoned formatter based on a non-zoned formatter. 83 * 84 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 85 * or else unexpected behavior may occur! 86 * 87 * See the [Rust documentation for `LocalizedOffsetShort`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.LocalizedOffsetShort.html) for more information. 88 */ 89 static createLocalizedOffsetShort(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 90 91 /** 92 * Creates a zoned formatter based on a non-zoned formatter. 93 * 94 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 95 * or else unexpected behavior may occur! 96 * 97 * See the [Rust documentation for `LocalizedOffsetShort`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.LocalizedOffsetShort.html) for more information. 98 */ 99 static createLocalizedOffsetShortWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 100 101 /** 102 * Creates a zoned formatter based on a non-zoned formatter. 103 * 104 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 105 * or else unexpected behavior may occur! 106 * 107 * See the [Rust documentation for `GenericLong`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.GenericLong.html) for more information. 108 */ 109 static createGenericLong(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 110 111 /** 112 * Creates a zoned formatter based on a non-zoned formatter. 113 * 114 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 115 * or else unexpected behavior may occur! 116 * 117 * See the [Rust documentation for `GenericLong`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.GenericLong.html) for more information. 118 */ 119 static createGenericLongWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 120 121 /** 122 * Creates a zoned formatter based on a non-zoned formatter. 123 * 124 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 125 * or else unexpected behavior may occur! 126 * 127 * See the [Rust documentation for `GenericShort`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.GenericShort.html) for more information. 128 */ 129 static createGenericShort(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 130 131 /** 132 * Creates a zoned formatter based on a non-zoned formatter. 133 * 134 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 135 * or else unexpected behavior may occur! 136 * 137 * See the [Rust documentation for `GenericShort`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.GenericShort.html) for more information. 138 */ 139 static createGenericShortWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 140 141 /** 142 * Creates a zoned formatter based on a non-zoned formatter. 143 * 144 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 145 * or else unexpected behavior may occur! 146 * 147 * See the [Rust documentation for `Location`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.Location.html) for more information. 148 */ 149 static createLocation(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 150 151 /** 152 * Creates a zoned formatter based on a non-zoned formatter. 153 * 154 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 155 * or else unexpected behavior may occur! 156 * 157 * See the [Rust documentation for `Location`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.Location.html) for more information. 158 */ 159 static createLocationWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 160 161 /** 162 * Creates a zoned formatter based on a non-zoned formatter. 163 * 164 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 165 * or else unexpected behavior may occur! 166 * 167 * See the [Rust documentation for `ExemplarCity`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.ExemplarCity.html) for more information. 168 */ 169 static createExemplarCity(locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 170 171 /** 172 * Creates a zoned formatter based on a non-zoned formatter. 173 * 174 * Caution: The locale provided here must match the locale used to construct the non-zoned formatter, 175 * or else unexpected behavior may occur! 176 * 177 * See the [Rust documentation for `ExemplarCity`](https://docs.rs/icu/latest/icu/datetime/fieldsets/zone/struct.ExemplarCity.html) for more information. 178 */ 179 static createExemplarCityWithProvider(provider: DataProvider, locale: Locale, formatter: DateFormatterGregorian): ZonedDateFormatterGregorian; 180 181 /** 182 * See the [Rust documentation for `format`](https://docs.rs/icu/latest/icu/datetime/struct.FixedCalendarDateTimeFormatter.html#method.format) for more information. 183 */ 184 formatIso(date: IsoDate, zone: TimeZoneInfo): string; 185 }