One Logo Pool Ball
Foundation · IOS API REFERENCE

Date.FormatStyle.Symbol.VerbatimHour

struct · iOS 15.0+ · SDK 27.1

struct VerbatimHour

A type that specifies a format for the hour in a date format style.

Members (2)

static · iOS 15.0+

defaultDigits

TypeScript
static defaultDigits(clock: Date_FormatStyle_Symbol_VerbatimHour_Clock, hourCycle: Date_FormatStyle_Symbol_VerbatimHour_HourCycle): Date_FormatStyle_Symbol_VerbatimHour
Swift declaration
static func defaultDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHour

Minimum digits to show the numeric hour. For example, `1`, `12`. Or `23` if using the `twentyFourHour` clock. - Note: This format does not take user's locale preferences into account. Consider using `defaultDigits` if applicable.

static · iOS 15.0+

twoDigits

TypeScript
static twoDigits(clock: Date_FormatStyle_Symbol_VerbatimHour_Clock, hourCycle: Date_FormatStyle_Symbol_VerbatimHour_HourCycle): Date_FormatStyle_Symbol_VerbatimHour
Swift declaration
static func twoDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHour

Numeric two-digit hour, zero padded if necessary. For example, `01`, `12`. Or `23` if using the `twentyFourHour` clock. - Note: This format does not take user's locale preferences into account. Consider using `defaultDigits` if applicable.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →