<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/DateComponentsFormatter/UnitsStyle-swift.enum/positional",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSDateComponentsFormatterUnitsStyle@NSDateComponentsFormatterUnitsStylePositional"
  },
  "title" : "DateComponentsFormatter.UnitsStyle.positional"
}
-->

# DateComponentsFormatter.UnitsStyle.positional

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

```
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`](/documentation/Foundation/DateComponentsFormatter/ZeroFormattingBehavior-swift.struct)) 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”.

> Note:
> This style may fall back to the behavior of ``doc://com.apple.foundation/documentation/Foundation/DateComponentsFormatter/UnitsStyle-swift.enum/abbreviated`` when attempting to display large time quantities.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)