Quellcodebibliothek
Statistik
Leitseite
products
/
Sources
/
formale Sprachen
/
C
/
Firefox
/
intl
/
icu_capi
/
bindings
/
js
/ (
Browser von der Mozilla Stiftung
Version 136.0.1
©
) Datei vom 10.2.2025 mit Größe 2 kB
Quelle ICU4XWeekCalculator.d.ts Sprache: unbekannt
Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { u8 } from "./diplomat-runtime"
import { FFIError } from "./diplomat-runtime"
import { ICU4XDataProvider } from "./ICU4XDataProvider";
import { ICU4XError } from "./ICU4XError";
import { ICU4XIsoWeekday } from "./ICU4XIsoWeekday";
import { ICU4XLocale } from "./ICU4XLocale";
import { ICU4XWeekendContainsDay } from "./ICU4XWeekendContainsDay";
/**
* A Week calculator, useful to be passed in to `week_of_year()` on Date and DateTime types
* See the {@link
https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.
html
Rust documentation for `WeekCalculator`} for more information.
*/
export class ICU4XWeekCalculator {
/**
* Creates a new {@link ICU4XWeekCalculator `ICU4XWeekCalculator`} from locale data.
* See the {@link
https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.
html#method.try_new
Rust documentation for `try_new`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static create(provider: ICU4XDataProvider, locale: ICU4XLocale): ICU4XWeekCalculator |
never;
/**
* Additional information: {@link
https://docs.rs/icu/latest/icu/calendar/week/struct
.WeekCalculator.html#structfield.first_weekday
1}, {@link https://docs.rs/icu/latest
/icu/calendar/week/struct.WeekCalculator.html#structfield.min_week_days 2}
*/
static create_from_first_day_of_week_and_min_week_days(first_weekday: ICU4XIsoWeek
day, min_week_days: u8): ICU4XWeekCalculator;
/**
* Returns the weekday that starts the week for this object's locale
* See the {@link
https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.
html#structfield.first_weekday
Rust documentation for `first_weekday`} for more informat
ion.
*/
first_weekday(): ICU4XIsoWeekday;
/**
* The minimum number of days overlapping a year required for a week to be considered part of that y
ear
* See the {@link
https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.
html#structfield.min_week_days
Rust documentation for `min_week_days`} for more informat
ion.
*/
min_week_days(): u8;
/**
* See the {@link
https://docs.rs/icu/latest/icu/calendar/week/struct.WeekCalculator.
html#method.weekend
Rust documentation for `weekend`} for more information.
*/
weekend(): ICU4XWeekendContainsDay;
}
[ Dauer der Verarbeitung: 0.36 Sekunden
]
2026-04-04