DateComponents

data class DateComponents(val eraStyle: EraStyle? = Defaults.ERA, val yearStyle: YearStyle = Defaults.YEAR, val monthStyle: MonthStyle = Defaults.MONTH, val dayOfMonthStyle: DayOfMonthStyle = Defaults.DAY_OF_MONTH, val dayOfWeekStyle: DayOfWeekStyle? = Defaults.DAY_OF_WEEK) : DateStyleOptions, ComponentsOptions.Date.Components

Class defining the style for each component of a date (year, month and day).

Constructors

Link copied to clipboard
constructor(eraStyle: EraStyle? = Defaults.ERA, yearStyle: YearStyle = Defaults.YEAR, monthStyle: MonthStyle = Defaults.MONTH, dayOfMonthStyle: DayOfMonthStyle = Defaults.DAY_OF_MONTH, dayOfWeekStyle: DayOfWeekStyle? = Defaults.DAY_OF_WEEK)

Properties

Link copied to clipboard
open override val dayOfMonthStyle: DayOfMonthStyle
Link copied to clipboard
open override val dayOfWeekStyle: DayOfWeekStyle?
Link copied to clipboard
open override val eraStyle: EraStyle?
Link copied to clipboard
open override val monthStyle: MonthStyle
Link copied to clipboard
open override val yearStyle: YearStyle

Functions

Link copied to clipboard
open override fun localizer(locale: PlatformLocale): LocalDateLocalizer