// generated by diplomat-tool import type { Calendar } from "./Calendar" import type { CalendarDateFromFieldsError } from "./CalendarDateFromFieldsError" import type { CalendarError } from "./CalendarError" import type { DateFields } from "./DateFields" import type { DateFields_obj } from "./DateFields" import type { DateFromFieldsOptions } from "./DateFromFieldsOptions" import type { DateFromFieldsOptions_obj } from "./DateFromFieldsOptions" import type { IsoDate } from "./IsoDate" import type { Rfc9557ParseError } from "./Rfc9557ParseError" import type { Weekday } from "./Weekday" import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/** *AnICU4XDateobjectcapableofcontainingadateforanycalendar. * *Seethe[Rustdocumentationfor`Date`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html) for more information.
*/
export class Date { /** @internal */
get ffiValue(): pointer; /** @internal */
constructor();
/** *Createsanew{@linkDate}representingtheISOdate *givenbutinagivencalendar * *Seethe[Rustdocumentationfor`new_from_iso`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.new_from_iso) for more information.
*/ static fromIsoInCalendar(isoYear: number, isoMonth: number, isoDay: number, calendar: Calendar): Date;
/** *Createsanew{@linkDate}fromthegivenfields,whichareinterpretedinthegivencalendarsystem. * *ThisAPIisexperimentalandmayexperiencebreakingchangesoutsidemajorreleases. * *Seethe[Rustdocumentationfor`try_from_fields`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.try_from_fields) for more information.
*/ static fromFieldsInCalendar(fields: DateFields_obj, options: DateFromFieldsOptions_obj, calendar: Calendar): Date;
/** *Createsanew{@linkDate}fromthegivenRataDie * *Seethe[Rustdocumentationfor`from_rata_die`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.from_rata_die) for more information.
*/ static fromRataDie(rd: bigint, calendar: Calendar): Date;
/** *Createsanew{@linkDate}fromanIXDTFstring. * *Seethe[Rustdocumentationfor`try_from_str`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.try_from_str) for more information.
*/ static fromString(v: string, calendar: Calendar): Date;
/** *Convertthisdatetooneinadifferentcalendar * *Seethe[Rustdocumentationfor`to_calendar`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.to_calendar) for more information.
*/
toCalendar(calendar: Calendar): Date;
/** *ConvertsthisdatetoISO * *Seethe[Rustdocumentationfor`to_iso`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.to_iso) for more information.
*/
toIso(): IsoDate;
/** *Returnsthisdate'sRataDie * *Seethe[Rustdocumentationfor`to_rata_die`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.to_rata_die) for more information.
*/
get rataDie(): bigint;
/** *Returnsthe1-indexeddayintheyearforthisdate * *Seethe[Rustdocumentationfor`day_of_year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.day_of_year) for more information.
*/
get dayOfYear(): number;
/** *Returnsthe1-indexeddayinthemonthforthisdate * *Seethe[Rustdocumentationfor`day_of_month`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.day_of_month) for more information.
*/
get dayOfMonth(): number;
/** *Returnsthedayintheweekforthisday * *Seethe[Rustdocumentationfor`day_of_week`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.day_of_week) for more information.
*/
get dayOfWeek(): Weekday;
/** *Returns1-indexednumberofthemonthofthisdateinitsyear * *Notethatforlunarcalendarsthismaynotleadtothesamemonth *havingthesameordinalmonthacrossyears;usemonth_codeifyoucare *aboutmonthidentity. * *Seethe[Rustdocumentationfor`month`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.month) for more information. * *Seethe[Rustdocumentationfor`ordinal`](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.MonthInfo.html#structfield.ordinal) for more information.
*/
get ordinalMonth(): number;
/** *Returnsthemonthcodeforthisdate.Typicallysomething *like"M01","M02",butcanbemorecomplicatedforlunarcalendars. * *Seethe[Rustdocumentationfor`standard_code`](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.MonthInfo.html#structfield.standard_code) for more information. * *Additionalinformation:[1](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.month)
*/
get monthCode(): string;
/** *Returnsthemonthnumberofthismonth. * *Seethe[Rustdocumentationfor`month_number`](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.MonthInfo.html#method.month_number) for more information.
*/
get monthNumber(): number;
/** *Returnswhetherthemonthisaleapmonth. * *Seethe[Rustdocumentationfor`is_leap`](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.MonthInfo.html#method.is_leap) for more information.
*/
get monthIsLeap(): boolean;
/** *Returnstheyearnumberinthecurrenteraforthisdate * *Forcalendarswithoutanera,returnstherelatedISOyear. * *Seethe[Rustdocumentationfor`era_year_or_related_iso`](https://docs.rs/icu/2.1.1/icu/calendar/types/enum.YearInfo.html#method.era_year_or_related_iso) for more information. * *Additionalinformation:[1](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.EraYear.html#structfield.year), [2](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.CyclicYear.html#structfield.related_iso), [3](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.year)
*/
get eraYearOrRelatedIso(): number;
/** *Returnstheextendedyear,whichcanbeusedfor * *Thisyearnumbercanbeusedwhenyouneedasimplenumericrepresentation *oftheyear,andcanbemeaningfullycomparedwithextendedyearsfromother *erasorusedinarithmetic. * *Seethe[Rustdocumentationfor`extended_year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.extended_year) for more information.
*/
get extendedYear(): number;
/** *Returnstheeraforthisdate,oranemptystring * *Seethe[Rustdocumentationfor`era`](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.EraYear.html#structfield.era) for more information. * *Additionalinformation:[1](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.year)
*/
get era(): string;
/** *Returnsthenumberofmonthsintheyearrepresentedbythisdate * *Seethe[Rustdocumentationfor`months_in_year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.months_in_year) for more information.
*/
get monthsInYear(): number;
/** *Returnsthenumberofdaysinthemonthrepresentedbythisdate * *Seethe[Rustdocumentationfor`days_in_month`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.days_in_month) for more information.
*/
get daysInMonth(): number;
/** *Returnsthenumberofdaysintheyearrepresentedbythisdate * *Seethe[Rustdocumentationfor`days_in_year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.days_in_year) for more information.
*/
get daysInYear(): number;
/** *Returnsthe{@linkCalendar}objectbackingthisdate * *Seethe[Rustdocumentationfor`calendar`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.calendar) for more information.
*/
get calendar(): Calendar;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.16 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.