• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { DataProvider } from "./DataProvider"
3import type { DateTimeFormatterLoadError } from "./DateTimeFormatterLoadError"
4import type { DateTimeLength } from "./DateTimeLength"
5import type { Locale } from "./Locale"
6import type { Time } from "./Time"
7import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
8
9
10/** An ICU4X NoCalendarFormatter object capable of formatting an [`Time`] type (and others) as a string
11*
12*See the [Rust documentation for `NoCalendarFormatter`](https://docs.rs/icu/latest/icu/datetime/type.NoCalendarFormatter.html) for more information.
13*
14*Additional information: [1](https://docs.rs/icu/latest/icu/datetime/fieldsets/struct.T.html)
15*/
16
17
18export class NoCalendarFormatter {
19
20    get ffiValue(): pointer;
21
22    static createWithLength(locale: Locale, length: DateTimeLength): NoCalendarFormatter;
23
24    static createWithLengthAndProvider(provider: DataProvider, locale: Locale, length: DateTimeLength): NoCalendarFormatter;
25
26    format(value: Time): string;
27}