Expand description
Lower-level, power-user APIs for formatting datetimes with pattern strings.
❗ This module forgoes most internationalization functionality of the datetime crate.
It assumes that the pattern is already localized for the customer’s locale. Most clients
should use DateTimeFormatter
instead of directly formatting with patterns.
Structs§
- Date
Time Names - A low-level type that formats datetime patterns with localized names. The calendar is chosen in the constructor at runtime.
- Date
Time Pattern - A pattern for formatting a datetime in a calendar.
- Date
Time Pattern Formatter - A formatter for a specific
DateTimePattern
. - Error
Field - The specific field for which an error occurred.
- Fixed
Calendar Date Time Names - A low-level type that formats datetime patterns with localized names. The calendar should be chosen at compile time.
- Formatted
Date Time Pattern - A pattern that has been interpolated and implements
TryWriteable
. - Unsupported
Calendar Error - Error returned from constructors that map from AnyCalendar to a formatter.
Enums§
- DayPeriod
Name Length - Choices for loading day period names.
- Formatted
Date Time Pattern Error - Error for the [
TryWriteable
] implementation ofFormattedDateTimePattern
. - Month
Name Length - Choices for loading month names.
- Pattern
Load Error - Error returned from
FixedCalendarDateTimeNames
’s pattern load methods. - Weekday
Name Length - Choices for loading weekday names.
- Year
Name Length - Choices for loading year names.