1// generated by diplomat-tool 2import type { Calendar } from "./Calendar" 3import type { CalendarError } from "./CalendarError" 4import type { CalendarParseError } from "./CalendarParseError" 5import type { Date } from "./Date" 6import type { WeekCalculator } from "./WeekCalculator" 7import type { WeekOf } from "./WeekOf" 8import type { Weekday } from "./Weekday" 9import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 10 11 12/** An ICU4X Date object capable of containing a ISO-8601 date 13* 14*See the [Rust documentation for `Date`](https://docs.rs/icu/latest/icu/calendar/struct.Date.html) for more information. 15*/ 16 17 18export class IsoDate { 19 20 get ffiValue(): pointer; 21 22 static fromString(v: string): IsoDate; 23 24 toCalendar(calendar: Calendar): Date; 25 26 toAny(): Date; 27 28 get dayOfYear(): number; 29 30 get dayOfMonth(): number; 31 32 get dayOfWeek(): Weekday; 33 34 weekOfMonth(firstWeekday: Weekday): number; 35 36 weekOfYear(calculator: WeekCalculator): WeekOf; 37 38 get month(): number; 39 40 get year(): number; 41 42 get isInLeapYear(): boolean; 43 44 get monthsInYear(): number; 45 46 get daysInMonth(): number; 47 48 get daysInYear(): number; 49 50 constructor(year: number, month: number, day: number); 51}