One Logo Pool Ball
Foundation · IOS API REFERENCE

Date.FormatStyle.Symbol.VerbatimHour.HourCycle

struct · iOS 15.0+ · SDK 27.1

struct HourCycle

A type that specifies the start of a clock representation for the format of a hour.

Members (2)

get · iOS 15.0+

oneBased

TypeScript
static get oneBased(): Date_FormatStyle_Symbol_VerbatimHour_HourCycle
Swift declaration
static let oneBased: Date.FormatStyle.Symbol.VerbatimHour.HourCycle

The hour ranges from 1 to 12 in the 12-hour clock. Ranges from 1 to 24 in a 24-hour clock.

get · iOS 15.0+

zeroBased

TypeScript
static get zeroBased(): Date_FormatStyle_Symbol_VerbatimHour_HourCycle
Swift declaration
static let zeroBased: Date.FormatStyle.Symbol.VerbatimHour.HourCycle

The hour ranges from 0 to 11 in a 12-hour clock. Ranges from 0 to 23 in a 24-hour clock.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →