MONDAY

Functions

displayName
Link copied to clipboard
common
fun displayName(style: TextStyle, locale: Locale): String

A textual representation of the day, suitable for display purposes. The localized name will be returned, if available. If not, the ISO day of week number will be returned instead.

localizedName
Link copied to clipboard
common
fun localizedName(style: TextStyle, locale: Locale): String?

The localized name of the day, if available for the locale in the specified style. The result depends on the configured DateTimeTextProvider and may differ between platforms.

minus
Link copied to clipboard
common
operator fun minus(days: Days): DayOfWeek

Returns this day of the week with days subtracted from it, wrapping when the beginning or end of the week is reached.

number
Link copied to clipboard
common
fun number(settings: WeekSettings): Int

The day of week number (1-7) according to the provided settings. Typically, the week will start on either Monday, Sunday, or Saturday.

fun number(locale: Locale): Int

The day of week number (1-7) according to the specified locale. Typically, the week will start on either Monday, Sunday, or Saturday. The number returned may differ between platforms.

plus
Link copied to clipboard
common
operator fun plus(days: Days): DayOfWeek

Returns this day of the week with days added to it, wrapping when the beginning or end of the week is reached.

Properties

name
Link copied to clipboard
common
val name: String
number
Link copied to clipboard
common
val number: Int

The ISO day of week number.

ordinal
Link copied to clipboard
common
val ordinal: Int