hourMinute(padHourToLength:roundSeconds:)
Returns a pattern to format a duration with hours and minutes only, with the given unit configurations.
Declaration
static func hourMinute(padHourToLength: Int, roundSeconds: FloatingPointRoundingRule = .toNearestOrEven) -> Duration.TimeFormatStyle.PatternParameters
- padHourToLength:
Padding for the hour field. For example, setting this value to
2formats one hour as01:00in theen_USlocale. - roundSeconds:
The rule to use for rounding the minutes value, given the remaining seconds value. Use one of the cases from the Floatingpointroundingrule enumeration.
Return Value
A Duration.TimeFormatStyle.Pattern that formats a duration with hours and minutes only, using the given unit configurations.