LocalDateTimeLocalizer

Localizer for LocalDateTime.

Create once and re-use for localizing multiple values with the same options. Use LocalDateTime.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

  • Jan 8, 2026, 9 at night

  • January 8, 2026 at 9:31:45 PM

  • Thursday, January 8, 2026 at 21:05

actual class LocalDateTimeLocalizer : DateTimeLocalizer<ERROR CLASS: Symbol not found for LocalDateTime> (source)

Localizer for LocalDateTime.

Create once and re-use for localizing multiple values with the same options. Use LocalDateTime.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

  • Jan 8, 2026, 9 at night

  • January 8, 2026 at 9:31:45 PM

  • Thursday, January 8, 2026 at 21:05

Localizer for LocalDateTime.

Create once and re-use for localizing multiple values with the same options. Use LocalDateTime.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

  • Jan 8, 2026, 9 at night

  • January 8, 2026 at 9:31:45 PM

  • Thursday, January 8, 2026 at 21:05

Constructors

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

Functions

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