YearOptions

data class YearOptions(val eraStyle: EraStyle? = Defaults.ERA, val yearStyle: YearStyle = Defaults.YEAR) : ComponentsOptions.Date.Components, PolyglotLocalizerOptions<YearLocalizer> (source)

Localization options for YearLocalizer.

Constructors

Link copied to clipboard
constructor(eraStyle: EraStyle? = Defaults.ERA, yearStyle: YearStyle = Defaults.YEAR)

Properties

Link copied to clipboard
open override val eraStyle: EraStyle?
Link copied to clipboard
open override val yearStyle: YearStyle

Functions

Link copied to clipboard
open override fun localizer(locale: PlatformLocale = getDefaultLocale()): YearLocalizer

Returns a new instance of the PolyglotLocalizer of type L that this options belongs to.