localizedName(_:locale:)
Returns the localized name of the time zone.
Declaration
func localizedName(_ style: NSTimeZone.NameStyle, locale: Locale?) -> String?Parameters
- style:
The format style for the returned string.
- locale:
The locale for which to format the name.
Return Value
The name of the receiver localized for locale using style.