IsoDate class final

An ICU4X Date object capable of containing a ISO-8601 date

See the Rust documentation for Date for more information.

Implemented types

Constructors

IsoDate.new(int year, int month, int day)
Creates a new IsoDate from the specified date.
factory
IsoDate.fromRataDie(int rd)
Creates a new IsoDate from the given Rata Die
factory
IsoDate.fromString(String v)
Creates a new IsoDate from an IXDTF string.
factory

Properties

dayOfMonth int
Returns the 1-indexed day in the month for this date
no setter
dayOfWeek Weekday
Returns the day in the week for this day
no setter
dayOfYear int
Returns the 1-indexed day in the year for this date
no setter
daysInMonth int
Returns the number of days in the month represented by this date
no setter
daysInYear int
Returns the number of days in the year represented by this date
no setter
hashCode int
The hash code for this object.
no setterinherited
isInLeapYear bool
Returns if the year is a leap year for this date
no setter
month int
Returns 1-indexed number of the month of this date in its year
no setter
monthsInYear int
Returns the number of months in the year represented by this date
no setter
rataDie int
Returns this date's Rata Die
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
Returns the year number in the current era for this date
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAny() Date
See the Rust documentation for to_any for more information.
toCalendar(Calendar calendar) Date
Convert this date to one in a different calendar
toString() String
A string representation of this object.
inherited
weekOfYear() IsoWeekOfYear
Returns the week number in this year, using week data

Operators

operator ==(Object other) bool
The equality operator.
inherited