Month

Represents one of the twelve months of the year.

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Number of days of this month in a common year

Link copied to clipboard

Number of days of this month in a leap year

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
val index0: Int

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

Link copied to clipboard
val index1: Int

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val next: Month

Next Month.

Link copied to clipboard
Link copied to clipboard

Previous Month.

Functions

Link copied to clipboard
fun days(year: Year): Int
fun days(year: Int): Int

Number of days in a specific month (28-31) depending whether the year or not.

fun days(leap: Boolean): Int

Number of days in a specific month (28-31) depending whether the year is leap or not.

Link copied to clipboard
fun daysToEnd(year: Year): Int
fun daysToEnd(year: Int): Int

Number of days since the start of the year to reach next month.

fun daysToEnd(leap: Boolean): Int

Number of days since the start of the leap year to reach next month.

Link copied to clipboard
fun daysToStart(year: Year): Int
fun daysToStart(year: Int): Int

Number of days since the start of the year to reach this month.

fun daysToStart(leap: Boolean): Int

Number of days since the start of the leap year to reach this month.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun minus(other: Month): Int
operator fun minus(delta: Int): Month
Link copied to clipboard
operator fun plus(delta: Int): Month
Link copied to clipboard
fun valueOf(value: String): Month

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Link copied to clipboard

Creates a YearMonth representing this year and this month.