Skip to content

Type MethodFoundationInternationalization

defaultDigits(clock:hourCycle:)

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
Minimum digits to show the numeric hour. For example, 1, 12. Or 23 if using the twentyFourHour clock.

Discussion

Note

This format does not take user’s locale preferences into account. Consider using defaultDigits if applicable.