Class ICU4XDate

An ICU4X Date object capable of containing a date and time for any calendar.

See the Rust documentation for Date for more information.

Constructors

Methods

  • Returns the 1-indexed day in the month for this date

    See the Rust documentation for day_of_month for more information.

    Returns number

  • Returns the number of days in the month represented by this date

    See the Rust documentation for days_in_month for more information.

    Returns number

  • Returns the number of days in the year represented by this date

    See the Rust documentation for days_in_year for more information.

    Returns number

  • Returns the era for this date,

    See the Rust documentation for year for more information.

    Additional information: 1

    Returns string

  • Returns the month code for this date. Typically something like "M01", "M02", but can be more complicated for lunar calendars.

    See the Rust documentation for month for more information.

    Returns string

  • Returns the number of months in the year represented by this date

    See the Rust documentation for months_in_year for more information.

    Returns number

  • Returns 1-indexed number of the month of this date in its year

    Note that for lunar calendars this may not lead to the same month having the same ordinal month across years; use month_code if you care about month identity.

    See the Rust documentation for month for more information.

    Returns number

  • Returns the week number in this month, 1-indexed, based on what is considered the first day of the week (often a locale preference).

    first_weekday can be obtained via first_weekday() on ICU4XWeekCalculator

    See the Rust documentation for week_of_month for more information.

    Parameters

    Returns number

  • Returns the year number in the current era for this date

    See the Rust documentation for year for more information.

    Returns number