Skip to content

Type MethodFoundationInternationalization

iso8601(_:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
The ISO8601 format with hours, minutes and optional seconds fields. For example, short: “-0800” long: “-08:00” or “-07:52:58”.
static func iso8601(_ width: Date.FormatStyle.Symbol.TimeZone.Width) -> Date.FormatStyle.Symbol.TimeZone