Skip to content

Type Property

twelveHour

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
In a 12-hour clock system, the 24-hour day is divided into two periods, a.m. and p.m, and each period consists of 12 hours.
static let twelveHour: Date.FormatStyle.Symbol.VerbatimHour.Clock

Discussion

Note

Does not include the period marker (AM/PM). Specify a PeriodSymbol if that’s desired.