class YearMonth : Comparable<YearMonth>
A month in a particular year.
(iosArm64, iosX64, jvm, macosX64)
<init> |
Create a YearMonth. <init>(year: Int, monthNumber: Int)<init>(year: Int, month: Month) |
(iosArm64, iosX64, jvm, macosX64)
dateRange |
The range of dates within this year-month. val dateRange: DateRange |
(iosArm64, iosX64, jvm, macosX64)
dayRange |
The range of days within this year-month. val dayRange: IntRange |
(iosArm64, iosX64, jvm, macosX64)
endDate |
The Date representing the last day in this year-month. val endDate: Date |
(iosArm64, iosX64, jvm, macosX64)
firstDayOfYear |
The ordinal date corresponding to the first day of this year-month. val firstDayOfYear: Int |
(iosArm64, iosX64, jvm, macosX64)
isInLeapYear |
Check if this year-month falls within a leap year. val isInLeapYear: Boolean |
(iosArm64, iosX64, jvm, macosX64)
lastDay |
The last day of the year-month. val lastDay: Int |
(iosArm64, iosX64, jvm, macosX64)
lastDayOfYear |
The ordinal date corresponding to the last day of this year-month. val lastDayOfYear: Int |
(iosArm64, iosX64, jvm, macosX64)
lengthOfMonth |
The length of the year-month in days. val lengthOfMonth: IntDays |
(iosArm64, iosX64, jvm, macosX64)
lengthOfYear |
The length of the year in days. val lengthOfYear: IntDays |
(iosArm64, iosX64, jvm, macosX64)
month |
The month of the year. val month: Month |
(iosArm64, iosX64, jvm, macosX64)
monthNumber |
The ISO month number, from 1-12. val monthNumber: Int |
(iosArm64, iosX64, jvm, macosX64)
startDate |
The Date representing the first day in this year-month. val startDate: Date |
(iosArm64, iosX64, jvm, macosX64)
year |
The year. val year: Int |
(iosArm64, iosX64, jvm, macosX64)
compareTo |
fun compareTo(other: YearMonth): Int |
(iosArm64, iosX64, jvm, macosX64)
contains |
operator fun contains(date: Date): Boolean |
(iosArm64, iosX64, jvm, macosX64)
copy |
Create a copy of this YearMonth, replacing the value of any component, as desired fun copy(year: Int = this.year, month: Month = this.month): YearMonthfun copy(year: Int = this.year, monthNumber: Int): YearMonth |
(iosArm64, iosX64, jvm, macosX64)
equals |
fun equals(other: Any?): Boolean |
(iosArm64, iosX64, jvm, macosX64)
hashCode |
fun hashCode(): Int |
(iosArm64, iosX64, jvm, macosX64)
minus |
operator fun minus(years: IntYears): YearMonthoperator fun minus(years: LongYears): YearMonthoperator fun minus(months: IntMonths): YearMonthoperator fun minus(months: LongMonths): YearMonth |
(iosArm64, iosX64, jvm, macosX64)
plus |
operator fun plus(years: IntYears): YearMonthoperator fun plus(years: LongYears): YearMonthoperator fun plus(months: IntMonths): YearMonthoperator fun plus(months: LongMonths): YearMonth |
(iosArm64, iosX64, jvm, macosX64)
toString |
Convert this year-month to a string in ISO-8601 extended format. fun toString(): String |
(iosArm64, iosX64, jvm, macosX64)
MAX |
The latest supported YearMonth, which may be used to indicate the "far future". val MAX: YearMonth |
(iosArm64, iosX64, jvm, macosX64)
MIN |
The earliest supported YearMonth, which may be used to indicate the "far past". val MIN: YearMonth |
(jvm)
toJavaYearMonth |
fun YearMonth.toJavaYearMonth(): YearMonth |