Month

enum Month : Enum<Month>

A month of the year.

Entries

JANUARY
Link copied to clipboard
common
FEBRUARY
Link copied to clipboard
common
MARCH
Link copied to clipboard
common
APRIL
Link copied to clipboard
common
MAY
Link copied to clipboard
common
MAY()
JUNE
Link copied to clipboard
common
JULY
Link copied to clipboard
common
AUGUST
Link copied to clipboard
common
SEPTEMBER
Link copied to clipboard
common
OCTOBER
Link copied to clipboard
common
NOVEMBER
Link copied to clipboard
common
DECEMBER
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: Month): Int
dayRangeIn
Link copied to clipboard
common
fun dayRangeIn(year: Int): IntRange
Returns the range of valid days for this month within a given year
displayName
Link copied to clipboard
common
fun displayName(style: TextStyle, locale: Locale): String
A textual representation of the month, suitable for display purposes.
equals
Link copied to clipboard
common
operator override fun equals(other: Any?): Boolean
firstDayOfYearIn
Link copied to clipboard
common
fun firstDayOfYearIn(year: Int): Int
Returns the day of the year that this month's first days falls on.
hashCode
Link copied to clipboard
common
override fun hashCode(): Int
lastDayIn
Link copied to clipboard
common
fun lastDayIn(year: Int): Int
Returns the last day of the month in a particular year.
lastDayOfYearIn
Link copied to clipboard
common
fun lastDayOfYearIn(year: Int): Int
Returns the day of the year that this month's last day falls on.
lengthIn
Link copied to clipboard
common
fun lengthIn(year: Int): IntDays
Returns the number of days in the month for a particular year.
localizedName
Link copied to clipboard
common
fun localizedName(style: TextStyle, locale: Locale): String?
The localized name of the month, if available for the locale in the specified style.
minus
Link copied to clipboard
common
operator fun minus(months: IntMonths): Month
Subtracts months from this month, wrapping when the beginning or end of the year is reached.
operator fun minus(months: LongMonths): Month
Subtracts months from this month, wrapping when the beginning or end of the year is reached.
plus
Link copied to clipboard
common
operator fun plus(months: IntMonths): Month
Adds months to this month, wrapping when the beginning or end of the year is reached.
operator fun plus(months: LongMonths): Month
Adds months to this month, wrapping when the beginning or end of the year is reached.
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

firstDayOfCommonYear
Link copied to clipboard
common
abstract val firstDayOfCommonYear: Int
The day of the year corresponding to the month's first day in a common year.
firstDayOfLeapYear
Link copied to clipboard
common
val firstDayOfLeapYear: Int
The day of the year corresponding to the month's first day in a leap year.
lengthInCommonYear
Link copied to clipboard
common
abstract val lengthInCommonYear: IntDays
The number of days in the month in a common year.
lengthInLeapYear
Link copied to clipboard
common
open val lengthInLeapYear: IntDays
The number of days in the month in a leap month.
name
Link copied to clipboard
common
val name: String
number
Link copied to clipboard
common
val number: Int
The ISO month number, from 1-12.
ordinal
Link copied to clipboard
common
val ordinal: Int