Without https://github.com/Kotlin/kotlinx-datetime/pull/453, YearMonth.until returning Long is inconsistent with LocalDate.until: Int. Also, this PR removes the js-joda-based JS implementation, which makes it easier to make YearMonth an expect class if we want that.
Fixes #168 Fixes #184
Related PRs:
YearMonth.days: LocalDateRange
and ranges ofYearMonth
values.YearMonth.until
returningLong
is inconsistent withLocalDate.until: Int
. Also, this PR removes the js-joda-based JS implementation, which makes it easier to makeYearMonth
anexpect
class if we want that.monthNumber
and rename themonthNumber: Int
constructor parameter tomonth: Int
, which affectsYearMonth
as well.java.io.Serializable
forYearMonth
.