Module icu_datetime::fields
source · Expand description
Enums representing the fields in a date pattern, including the field’s type, length and symbol.
Structs§
ULE
type for DayPeriodULE
type for Day- A field within a date pattern string, also referred to as a date field. A date field is the repetition of a specific pattern character one or more times within the pattern string. The pattern character is known as the field symbol, which indicates the particular meaning for the field.
ULE
type forFieldSymbol
ULE
type for HourULE
type for MonthULE
type for SecondULE
type for TimeZoneULE
type for WeekULE
type for WeekdayULE
type for Year
Enums§
- An enum for the possible symbols of a day field in a date pattern.
- An enum for the possible symbols of a day period field in a date pattern.
- An error relating to the field for a date pattern field as a whole.
- An enum representing the length of a field within a date or time formatting pattern string, in which the pattern field is represented as a letter occurring 1 or more times in a row, ex:
MMM
,dd
,y
. See the LDML documentation in UTS 35 for more details. - Various numeric overrides for datetime patterns as found in CLDR
- A field symbol for a date formatting pattern. Field symbols are a more granular distinction for a pattern field within the category of a field type. Examples of field types are:
Year
,Month
,Hour
. Within theHour
field type, examples of field symbols are:Hour::H12
,Hour::H24
. Each field symbol is represented within the date formatting pattern string by a distinct character from the set ofA..Z
anda..z
. - An enum for the possible symbols of an hour field in a date pattern.
- An error relating to the length of a field within a date pattern.
- An enum for the possible symbols of a month field in a date pattern.
- An enum for the possible symbols of a second field in a date pattern.
- An error relating to the field symbol for a date pattern field.
- An enum for the possible symbols of a time zone field in a date pattern.
- An enum for the possible symbols of a week field in a date pattern.
- An enum for the possible symbols of a weekday field in a date pattern.
- An enum for the possible symbols of a year field in a date pattern.