tor-browser

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

ZonedTimeFormatter.d.ts (10652B)


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