Skip to content

//core/io.islandtime/TimeZone/localizedName

localizedName

common

fun localizedName(style: TimeZoneTextStyle, locale: Locale): String?

The localized name of this time zone, if available for the locale in the specified style. The result depends on the configured TimeZoneTextProvider and may differ between platforms.

Example output for the "America/New_York" ID and "en-US" locale:

  • Standard: "Eastern Standard Time"
  • Short standard: "EST"
  • Daylight Saving: "Eastern Daylight Time"
  • Short daylight saving: "EDT"
  • Generic: "Eastern Time"
  • Short generic: "ET"

See also

TimeZone.displayName