A type that specifies a clock representation for the format of an hour.
Members (2)
get · iOS 15.0+
twentyFourHour
TypeScript
static get twentyFourHour(): Date_FormatStyle_Symbol_VerbatimHour_Clock
Swift declaration
static let twentyFourHour: Date.FormatStyle.Symbol.VerbatimHour.Clock
In a 24-hour clock system, the day runs from midnight to midnight, dividing into 24 hours.
- Note: If using `twentyFourHour` together with `PeriodSymbol`, the period is ignored.
get · iOS 15.0+
twelveHour
TypeScript
static get twelveHour(): Date_FormatStyle_Symbol_VerbatimHour_Clock
Swift declaration
static let twelveHour: Date.FormatStyle.Symbol.VerbatimHour.Clock
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.
- Note: Does not include the period marker (AM/PM). Specify a `PeriodSymbol` if that's desired.