hour(_:)
Change the representation of the hour in the format.
Declaration
func hour(_ format: Date.FormatStyle.Symbol.Hour = .defaultDigits(amPM: .abbreviated)) -> Date.FormatStyle.AttributedParameters
- format:
Set the symbol representation or pass
nilto remove it.