core / io.islandtime.format / PlatformTimeZoneTextProvider / timeZoneTextFor

timeZoneTextFor

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) fun timeZoneTextFor(zone: TimeZone, style: TimeZoneTextStyle, locale: <ERROR CLASS>): String?

Get the localized time zone text.

Parameters

zone - the time zone

style - the style of the text

locale - the locale

Return
the localized time zone text or null if unavailable in the specified style

(jvm) fun timeZoneTextFor(zone: TimeZone, style: TimeZoneTextStyle, locale: Locale): String?

Overrides TimeZoneTextProvider.timeZoneTextFor

Get the localized time zone text.

Parameters

zone - the time zone

style - the style of the text

locale - the locale

Return
the localized time zone text or null if unavailable in the specified style