RelativeYearMonthOptions

data class RelativeYearMonthOptions(val style: RelativeUnitStyle = RelativeUnitStyle.LONG, val allowedDirections: Set<RelativeDirection> = RelativeDirection.entries.toSet()) : RelativeUnitOptions(source)

Localization options for RelativeYearMonthLocalizer, YearMonth.localizeRelative, and YearMonth.localizeRelativeAsFlow.

Constructors

Link copied to clipboard
constructor(style: RelativeUnitStyle = RelativeUnitStyle.LONG, allowedDirections: Set<RelativeDirection> = RelativeDirection.entries.toSet())

Properties

Link copied to clipboard

list of allowed relative directions to use for word style localization (e.g. last month'). Pass an empty list to force numeric localization (e.g. 1 month ago`). All directions are enabled by default.

Link copied to clipboard
open override val style: RelativeUnitStyle

the style of the year