Enumeration Case

DateComponentsFormatter.UnitsStyle.brief

A style that uses a shortened spelling for units of time that is shorter than DateComponentsFormatter.UnitsStyle.short.

Declaration

case brief = 5

Discussion

For example, the quantity of 3 years, 9 months, 26 days, 19 hours, and 17 seconds is displayed in the U.S. English locale as “3yrs 9mths 26days 19hr 17sec”.

See Also

Styles

case spellOut

A style that spells out the units and quantities of time.

case full

A style that spells out the units of time, but not the quantities.

case short

A style that uses a shortened spelling for units.

case abbreviated

A style that uses the most abbreviated spelling for units of time.

case positional

A style that uses the position of a unit of time to identify its value.