Companion

object Companion

Properties

Link copied to clipboard
const val Count: Int = 12

Number of months in a year (12).

Functions

Link copied to clipboard
fun adjusted(index1: Int): Month

Gets the Month from a month index where January=1 wrapping the index to valid values.

Link copied to clipboard
fun checked(index1: Int): Month

Gets the Month from a month index where January=1 checking that the provided index1 is valid between 1..12.

Link copied to clipboard
fun fromDayOfYear(dayOfYear: Int, year: Year): Month?

Gets the Month of a dayOfYear in the specified year.

fun fromDayOfYear(dayOfYear: Int, leap: Boolean): Month?

Gets the Month of a dayOfYear in a leap year.

Link copied to clipboard
operator fun get(index1: Int): Month

1: January, 2: February, 3: March, 4: April, 5: May, 6: June, 7: July, 8: August, 9: September, 10: October, 11: November, 12: December

Link copied to clipboard
operator fun invoke(index1: Int): Month

1: January, 2: February, 3: March, 4: April, 5: May, 6: June, 7: July, 8: August, 9: September, 10: October, 11: November, 12: December