Instance MethodSwift
formatted()
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Formats
self using the hour-minute-second time patternfunc formatted() -> String
Return Value
A formatted string to describe the duration, such as “1:30:56” for a duration of 1 hour, 30 minutes, and 56 seconds