The OpenD Programming Language

YearMonth.isLeapYear

Whether this Date is in a leap year.

struct YearMonth
nothrow @property const @safe pure nothrow @nogc
bool
isLeapYear
()

Examples

assert(YearMonth(1999, cast(Month) 12).isLeapYear == false);
assert(YearMonth(2000, cast(Month) 12).isLeapYear == true);

Meta