core / io.islandtime.format / TimeZoneTextProvider / timeZoneTextFor

timeZoneTextFor

(iosArm64, iosX64, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) open 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) open fun timeZoneTextFor(zone: TimeZone, style: TimeZoneTextStyle, locale: Locale): 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