Module icu_calendar::types
source · 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§
- A day number in a month. Usually 1-based.
- A day of week in month. 1-based.
- A struct containing various details about the position of the day within a year. It is returned
- The era of a particular date
- Representation of a formattable month.
- Representation of a formattable year.
- An ISO-8601 hour component, for use with ISO calendars.
- An ISO-8601 minute component, for use with ISO calendars.
- An ISO-8601 second component, for use with ISO calendars.
- Representation of a month in a year
- A fractional second component, stored as nanoseconds.
- A representation of a time in hours, minutes, seconds, and nanoseconds
- A week number in a month. Usually 1-based.
- A week number in a year. Usually 1-based.
Enums§
- A weekday in a 7-day week, according to ISO-8601.