tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ZonedDateTimeFormatterGregorian.d.ts (9810B)


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