core / io.islandtime / YearMonth / <init>
<init>
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
<init>(year: Int, monthNumber: Int)
Creates a YearMonth.
Exceptions
DateTimeException - if the year or month is invalid
(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86)
<init>(year: Int, month: Month)
Creates a YearMonth.
Parameters
year - the year
month - the month of the year
Exceptions
DateTimeException - if the year is outside the supported range
Constructor
Creates a YearMonth.