Returns the ICU4XCalendar
object backing this date
See the Rust documentation for calendar
for more information.
Gets a copy of the date contained in this object
See the Rust documentation for date
for more information.
Returns the 1-indexed day in the month for this date
See the Rust documentation for day_of_month
for more information.
Returns the day in the week for this day
See the Rust documentation for day_of_week
for more information.
Returns the 1-indexed day in the year for this date
See the Rust documentation for day_of_year_info
for more information.
Returns the number of days in the month represented by this date
See the Rust documentation for days_in_month
for more information.
Returns the number of days in the year represented by this date
See the Rust documentation for days_in_year
for more information.
Returns the era for this date,
See the Rust documentation for year
for more information.
Returns the hour in this time
See the Rust documentation for hour
for more information.
Returns the minute in this time
See the Rust documentation for minute
for more information.
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 the number of months in the year represented by this date
See the Rust documentation for months_in_year
for more information.
Returns the nanosecond in this time
See the Rust documentation for nanosecond
for more information.
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 the second in this time
See the Rust documentation for second
for more information.
Gets the time contained in this object
See the Rust documentation for time
for more information.
Convert this datetime to one in a different calendar
See the Rust documentation for to_calendar
for more information.
Converts this date to ISO
See the Rust documentation for to_iso
for more information.
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.
Returns the week number in this year, using week data
See the Rust documentation for week_of_year
for more information.
Returns the year number in the current era for this date
See the Rust documentation for year
for more information.
Static
create_Creates a new ICU4XDateTime
from the given codes, which are interpreted in the given calendar system
See the Rust documentation for try_new_from_codes
for more information.
Static
create_Creates a new ICU4XDateTime
from an ICU4XDate
and ICU4XTime
object
See the Rust documentation for new
for more information.
Static
create_Creates a new ICU4XDateTime
representing the ISO date and time given but in a given calendar
See the Rust documentation for new_from_iso
for more information.
An ICU4X DateTime object capable of containing a date and time for any calendar.
See the Rust documentation for
DateTime
for more information.