hourCycle

Returns the hour cycle such as whether it uses 12-hour clock or 24-hour clock. Default is .zeroToTwentyThree if the data isn’t available. Calling this on .current or .autoupdatingCurrent returns user’s preference values as set in the system settings if available, overriding the default value of the user’s locale.

iOS
16+
macOS
13+
tvOS
16+
watchOS
9+
var hourCycle: Locale.HourCycle { get }