Enumeration Case

DateComponentsFormatter.UnitsStyle.abbreviated

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

Declaration

case abbreviated = 1

Discussion

This style represents the shortest representation of units and quantities of time.

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 “3y 9mo 26d 19h 17s”.

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 brief

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

case positional

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