minuteSecond(padMinuteToLength:fractionalSecondsLength:roundFractionalSeconds:)
Returns a pattern to format a duration with minutes and seconds only, with the given unit configurations.
Declaration
static func minuteSecond(padMinuteToLength: Int, fractionalSecondsLength: Int = 0, roundFractionalSeconds: FloatingPointRoundingRule = .toNearestOrEven) -> Duration.TimeFormatStyle.PatternParameters
- padMinuteToLength:
Padding for the minute field. For example, setting this value to
2formats five minutes as05:00in theen_USlocale. - fractionalSecondsLength:
The length of the fractional seconds. For example, setting this value to
2formats five minutes as5:00.00in theen_USlocale. - roundFractionalSeconds:
The rule to use for rounding the seconds value, given the remaining fractional seconds value. Use one of the cases from the Floatingpointroundingrule enumeration.
Return Value
A Duration.TimeFormatStyle.Pattern that formats a duration with minutes and seconds, using the given unit configurations.