Enumeration Case

DateComponentsFormatter.UnitsStyle.spellOut

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

Declaration

case spellOut = 4

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 “three years, nine months, twenty-six days, nineteen hours, seventeen seconds”.

See Also

Styles

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 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.