DayOfWeek

enum DayOfWeek : Enum<DayOfWeek>

A day of the week.

Entries

MONDAY
Link copied to clipboard
common
TUESDAY
Link copied to clipboard
common
WEDNESDAY
Link copied to clipboard
common
THURSDAY
Link copied to clipboard
common
FRIDAY
Link copied to clipboard
common
SATURDAY
Link copied to clipboard
common
SUNDAY
Link copied to clipboard
common

Types

Companion
Link copied to clipboard
common
object Companion

Functions

compareTo
Link copied to clipboard
common
operator override fun compareTo(other: DayOfWeek): Int
displayName
Link copied to clipboard
common
fun displayName(style: TextStyle, locale: Locale): String
A textual representation of the day, suitable for display purposes.
equals
Link copied to clipboard
common
operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
override fun hashCode(): Int
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.
minus
Link copied to clipboard
common
operator fun minus(days: IntDays): DayOfWeek
Subtracts days from this day of the week, wrapping when the beginning or end of the week is reached.
operator fun minus(days: LongDays): DayOfWeek
Subtracts days from this day of the week, 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.
fun number(locale: Locale): Int
The day of week number (1-7) according to the specified locale.
plus
Link copied to clipboard
common
operator fun plus(days: IntDays): DayOfWeek
Adds days to this day of the week, wrapping when the beginning or end of the week is reached.
operator fun plus(days: LongDays): DayOfWeek
Adds days to this day of the week, wrapping when the beginning or end of the week is reached.
toString
Link copied to clipboard
common
open override fun toString(): String

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