TimeZoneLocalizer

Class to localize a standalone TimeZone for standalone usage.

Please note that is class is intended to localize a time zone in a way that is agnostic to the actual offset of the timezone in a given moment, as this value can change (e.g. because of DST).

For this reason, only the TimeZoneStyle.Generic subset is allowed in the options.

Examples:

  • America/Los_Angeles

  • PT

  • Pacific Time

  • Los Angeles Time

actual class TimeZoneLocalizer : DateTimeLocalizer<ERROR CLASS: Symbol not found for TimeZone> (source)

Class to localize a standalone TimeZone for standalone usage.

Please note that is class is intended to localize a time zone in a way that is agnostic to the actual offset of the timezone in a given moment, as this value can change (e.g. because of DST).

For this reason, only the TimeZoneStyle.Generic subset is allowed in the options.

Examples:

  • America/Los_Angeles

  • PT

  • Pacific Time

  • Los Angeles Time

Class to localize a standalone TimeZone for standalone usage.

Please note that is class is intended to localize a time zone in a way that is agnostic to the actual offset of the timezone in a given moment, as this value can change (e.g. because of DST).

For this reason, only the TimeZoneStyle.Generic subset is allowed in the options.

Examples:

  • America/Los_Angeles

  • PT

  • Pacific Time

  • Los Angeles Time

Constructors

Link copied to clipboard
expect constructor(options: TimeZoneOptions = TimeZoneOptions(), locale: PlatformLocale = getDefaultLocale())
actual constructor(options: TimeZoneOptions, locale: PlatformLocale)
actual constructor(options: TimeZoneOptions, locale: PlatformLocale)

Functions

Link copied to clipboard
expect open override fun localize(value: TimeZone): String
abstract fun localize(value: ERROR CLASS: Symbol not found for TimeZone): String
actual open override fun localize(value: ERROR CLASS: Symbol not found for TimeZone): String
actual open override fun localize(value: TimeZone): String