Type Method
hourMinute(padHourToLength:roundSeconds:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Displays a duration in terms of hours and minutes with the specified configurations.
static func hourMinute(padHourToLength: Int, roundSeconds: FloatingPointRoundingRule = .toNearestOrEven) -> Duration.TimeFormatStyle.Pattern
Parameters
padHourToLengthPadding for the hour field. For example, one hour is formatted as “01:00” in en_US locale when this value is set to 2.
roundSecondsRounding rule for the remaining second values.
Return Value
A pattern to format a duration with.