Instance Method

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.

See Also

Describing Time Zones

var description: String

A textual description of the time zone including the name, abbreviation, offset from GMT, and whether or not daylight saving time is currently in effect.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software