ZonedYearMonthLocalizer
class ZonedYearMonthLocalizer(options: ZonedYearMonthOptions, locale: PlatformLocale = getDefaultLocale()) : PolyglotDateTimeZonedLocalizer<YearMonth> (source)
Localizer for Zoned<YearMonth>.
This behaves identically to YearMonthLocalizer, but it also adds a TimeZone in the mix.
Because a YearMonth represents a big span of time, the timezone could have different offsets at different moments within the year. For this reason, only the TimeZoneStyle.Generic subset is allowed in the options for the time zone style.
Create once and re-use for localizing multiple values with the same options. Use Zoned.localize for one-off localizations.
Examples:
January 2026, Los Angeles TimeJan 26, PT01/2026, Pacific Time