YearMonth.this

Constructs a YearMonth from a year and month (as enum or integer), a Date, or a YearMonthDay.

Examples

auto ym = YearMonth("1999-01");
assert(ym.year == 1999);
assert(ym.month == 1);