Structure
Date.FormatStyle.Symbol.VerbatimHour
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
A type that specifies a format for the hour in a date format style.
struct VerbatimHour
Topics
Structures
struct ClockA type that specifies a clock representation for the format of an hour.struct HourCycleA type that specifies the start of a clock representation for the format of a hour.
Type Methods
static func defaultDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHourMinimum digits to show the numeric hour. For example,1,12. Or23if using thetwentyFourHourclock.static func twoDigits(clock: Date.FormatStyle.Symbol.VerbatimHour.Clock, hourCycle: Date.FormatStyle.Symbol.VerbatimHour.HourCycle) -> Date.FormatStyle.Symbol.VerbatimHourNumeric two-digit hour, zero padded if necessary. For example,01,12. Or23if using thetwentyFourHourclock.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.SendableSwift.SendableMetatype