Constants for specifying how to represent quantities of time.
- iOS 8.0+
- macOS 10.10+
- tvOS 9.0+
- watchOS 2.0+
All date and time values are localized and formatted according to the current user’s language preferences.
The following table shows how the quantity of 9 hours, 41 minutes, and 30 seconds is displayed in the U.S. English locale for each style:
A style that spells out the units and quantities of time.
A style that spells out the units of time, but not the quantities.
A style that uses a shortened spelling for units.
A style that uses a shortened spelling for units of time that is shorter than
A style that uses the most abbreviated spelling for units of time.
A style that uses the position of a unit of time to identify its value.