tor-browser

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

TimeFormatter.d.ts (1855B)


      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 { Locale } from "./Locale"
      7 import type { Time } from "./Time"
      8 import type { TimePrecision } from "./TimePrecision"
      9 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
     10 
     11 
     12 /**
     13 * See the [Rust documentation for `NoCalendarFormatter`](https://docs.rs/icu/latest/icu/datetime/type.NoCalendarFormatter.html) for more information.
     14 */
     15 
     16 
     17 export class TimeFormatter {
     18    get ffiValue(): pointer;
     19 
     20 
     21    /**
     22     * See the [Rust documentation for `try_new`](https://docs.rs/icu/latest/icu/datetime/type.NoCalendarFormatter.html#method.try_new) for more information.
     23     *
     24     * See the [Rust documentation for `T`](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.T.html) for more information.
     25     *
     26     * Additional information: [1](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.T.html#method.with_time_precision), [2](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.T.html#method.with_alignment), [3](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.T.html#method.for_length)
     27     */
     28    static createWithProvider(provider: DataProvider, locale: Locale, length: DateTimeLength | null, timePrecision: TimePrecision | null, alignment: DateTimeAlignment | null): TimeFormatter;
     29 
     30    /**
     31     * See the [Rust documentation for `format`](https://docs.rs/icu/latest/icu/datetime/type.NoCalendarFormatter.html#method.format) for more information.
     32     */
     33    format(time: Time): string;
     34 
     35    constructor(locale: Locale, length: DateTimeLength | null, timePrecision: TimePrecision | null, alignment: DateTimeAlignment | null);
     36 }