unitsStyle
The formatting style for unit names.
Declaration
var unitsStyle: DateComponentsFormatter.UnitsStyle { get set }Discussion
Configures the strings to use (if any) for unit names such as days, hours, minutes, and seconds. Use this property to specify whether you want abbreviated or shortened versions of unit names—for example, hrs instead of hours.
The default value of this property is DateComponentsFormatter.UnitsStyle.positional.