DayOfWeekNames

constructor(monday: String, tuesday: String, wednesday: String, thursday: String, friday: String, saturday: String, sunday: String)(source)

A constructor that takes the names of weekdays in order from Monday to Sunday.

Samples

import kotlinx.datetime.*
import kotlinx.datetime.format.*
import kotlin.test.*

fun main() { 
   //sampleStart 
   // Constructing a custom set of day of week names for parsing and formatting by passing 7 strings
val myMonthNames = DayOfWeekNames(
    "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
)
check(myMonthNames == DayOfWeekNames.ENGLISH_ABBREVIATED) // could just use the built-in one... 
   //sampleEnd
}

constructor(names: List<String>)(source)