MonthNames

constructor(january: String, february: String, march: String, april: String, may: String, june: String, july: String, august: String, september: String, october: String, november: String, december: String)(source)

Create a MonthNames using the month names in order from January to December.

Samples

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

fun main() { 
   //sampleStart 
   // Constructing a custom set of month names for parsing and formatting by passing 12 strings
val myMonthNames = MonthNames(
    "Jan", "Feb", "Mar", "Apr", "May", "Jun",
    "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
)
check(myMonthNames == MonthNames.ENGLISH_ABBREVIATED) // could just use the built-in one... 
   //sampleEnd
}

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