Skip to content

StructureSwift

Duration.TimeFormatStyle

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
Format style to format a Duration in a localized positional format. For example, one hour and ten minutes is displayed as “1:10:00” in the U.S. English locale, or “1.10.00” in the Finnish locale.
struct TimeFormatStyle

Topics

Structures

  • struct Attributed
    Formats a duration as an attributed string with the durationField attribute key and FoundationAttributes.DurationFieldAttribute attribute.
  • struct Pattern
    The units to display a Duration with and configurations for the units.

Initializers

Instance Properties

Instance Methods

Default Implementations

Relationships

Conforms To

  • DiscreteFormatStyle
  • FormatStyle
  • Swift.Copyable
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Escapable
  • Swift.Hashable
  • Swift.Sendable
  • Swift.SendableMetatype