Duration.UnitsFormatStyle.Unit
A unit to use in formatting a duration.
Declaration
struct UnitOverview
Supported units range from hours to nanoseconds. Use these with the allowed parameter of the Duration.UnitsFormatStyle initializers to specify which units to use in a formatted string.