// generated by diplomat-tool import type { Calendar } from "./Calendar" import type { CalendarError } from "./CalendarError" import type { Date } from "./Date" import type { IsoWeekOfYear } from "./IsoWeekOfYear" import type { Rfc9557ParseError } from "./Rfc9557ParseError" import type { Weekday } from "./Weekday" import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/** *AnICU4XDateobjectcapableofcontainingaISO-8601date * *Seethe[Rustdocumentationfor`Date`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html) for more information.
*/
export class IsoDate { /** @internal */
get ffiValue(): pointer;
/** *Createsanew{@linkIsoDate}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): IsoDate;
/** *Createsanew{@linkIsoDate}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): IsoDate;
/** *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;
/** *Seethe[Rustdocumentationfor`to_any`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.to_any) for more information.
*/
toAny(): Date;
/** *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;
/** *Returnstheweeknumberinthisyear,usingweekdata * *Seethe[Rustdocumentationfor`week_of_year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.week_of_year) for more information.
*/
weekOfYear(): IsoWeekOfYear;
/** *Returns1-indexednumberofthemonthofthisdateinitsyear * *Seethe[Rustdocumentationfor`ordinal`](https://docs.rs/icu/2.1.1/icu/calendar/types/struct.MonthInfo.html#structfield.ordinal) for more information. * *Additionalinformation:[1](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.month)
*/
get month(): number;
/** *Returnstheyearnumberinthecurrenteraforthisdate * *Forcalendarswithoutanera,returnstheextendedyear * *Seethe[Rustdocumentationfor`year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.year) for more information.
*/
get year(): number;
/** *Returnsiftheyearisaleapyearforthisdate * *Seethe[Rustdocumentationfor`is_in_leap_year`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.is_in_leap_year) for more information.
*/
get isInLeapYear(): boolean;
/** *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;
/** *Createsanew{@linkIsoDate}fromthespecifieddate. * *Seethe[Rustdocumentationfor`try_new_iso`](https://docs.rs/icu/2.1.1/icu/calendar/struct.Date.html#method.try_new_iso) for more information.
*/
constructor(year: number, month: number, day: number);
}
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.