YearMonth

fun YearMonth(year: Int, monthNumber: Int)

Creates a YearMonth.

Throws

if the year or month is invalid

fun YearMonth(year: Int, month: Month)

Creates a YearMonth.

Parameters

year

the year

month

the month of the year