Expand description
This module contains various types used by icu_calendar
and icu::datetime
Macros§
- dt_unit 🔒
- This macro defines a struct for 0-based date fields: hours, minutes, seconds and fractional seconds. Each unit is bounded by a range. The traits implemented here will return a Result on whether or not the unit is in range from the given input.
Structs§
- DayOf
Month - A day number in a month. Usually 1-based.
- DayOf
Week InMonth - A day of week in month. 1-based.
- DayOf
Year Info - A struct containing various details about the position of the day within a year. It is returned
- Era
- The era of a particular date
- Formattable
Month - Representation of a formattable month.
- Formattable
Year - Representation of a formattable year.
- IsoHour
- An ISO-8601 hour component, for use with ISO calendars.
- IsoMinute
- An ISO-8601 minute component, for use with ISO calendars.
- IsoSecond
- An ISO-8601 second component, for use with ISO calendars.
- Month
Code - Representation of a month in a year
- Nano
Second - A fractional second component, stored as nanoseconds.
- Time
- A representation of a time in hours, minutes, seconds, and nanoseconds
- Week
OfMonth - A week number in a month. Usually 1-based.
- Week
OfYear - A week number in a year. Usually 1-based.
Enums§
- IsoWeekday
- A weekday in a 7-day week, according to ISO-8601.