Enumeration Case

NSDateComponentsFormatterUnitsStylePositional

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

Declaration

NSDateComponentsFormatterUnitsStylePositional = 0

Discussion

This style is most commonly used for time values where the hour, minute, and second values are separated by colons. You can use the zero formatting behaviors (NSDateComponentsFormatterZeroFormattingBehavior) to further modify the formatting of this value.

For example, one hour and ten minutes is displayed in the U.S. English locale as “1:10:00”.

See Also

Styles

NSDateComponentsFormatterUnitsStyleSpellOut

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

NSDateComponentsFormatterUnitsStyleFull

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

NSDateComponentsFormatterUnitsStyleShort

A style that uses a shortened spelling for units.

NSDateComponentsFormatterUnitsStyleBrief

A style that uses a shortened spelling for units of time that is shorter than NSDateComponentsFormatterUnitsStyleShort.

NSDateComponentsFormatterUnitsStyleAbbreviated

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