Skip to content

StructureFoundationEssentials

Date.IntervalFormatStyle

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
A format style that creates string representations of date intervals.
struct IntervalFormatStyle

Overview

Use Date.IntervalFormatStyle to create user-readable strings of date intervals. The format style provides customization to show specific date and time components.

Topics

Initializers

Instance Properties

Instance Methods

Type Aliases

  • typealias DateStyle
    The type that defines date interval styles that vary in length or in their included components.
  • typealias Symbol
    The type that supports customizing formatting templates using the date format style’s modifier functions, and constructing fixed-pattern date format strings.
  • typealias TimeStyle
    The type that defines time styles that vary in length or in their included components.

Relationships

Conforms To

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