Contents

DateComponentsFormatter.UnitsStyle.positional

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

Declaration

case positional

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 (DateComponentsFormatter.ZeroFormattingBehavior) 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