ZonedInstantLocalizer

Localizer for an Instant paired with a TimeZone (see Zoned).

Create once and re-use for localizing multiple values with the same options. Use Zoned.localize for one-off localizations.

Note that the same warning in LocalTimeLocalizer for "gaps" in the time components applies here.

Examples:

  • 1/8/26 9:05 PM PST

  • Jan 8, 2026, 9 at night Pacific Daylight Time

  • January 8, 2026 at 9:31:45 PM GMT-07:00

  • Thursday, January 8, 2026 at 21:05 Los Angeles Time

actual class ZonedInstantLocalizer : DateTimeZonedLocalizer<ERROR CLASS: Symbol not found for Instant> (source)

Localizer for an Instant paired with a TimeZone (see Zoned).

Create once and re-use for localizing multiple values with the same options. Use Zoned.localize for one-off localizations.

Note that the same warning in LocalTimeLocalizer for "gaps" in the time components applies here.

Examples:

  • 1/8/26 9:05 PM PST

  • Jan 8, 2026, 9 at night Pacific Daylight Time

  • January 8, 2026 at 9:31:45 PM GMT-07:00

  • Thursday, January 8, 2026 at 21:05 Los Angeles Time

Localizer for an Instant paired with a TimeZone (see Zoned).

Create once and re-use for localizing multiple values with the same options. Use Zoned.localize for one-off localizations.

Note that the same warning in LocalTimeLocalizer for "gaps" in the time components applies here.

Examples:

  • 1/8/26 9:05 PM PST

  • Jan 8, 2026, 9 at night Pacific Daylight Time

  • January 8, 2026 at 9:31:45 PM GMT-07:00

  • Thursday, January 8, 2026 at 21:05 Los Angeles Time

Constructors

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

Functions

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