YearMonth.lengthOfMonth

Returns the number of days in the month represented by this YearMonth.

struct YearMonth
const pure nothrow @property @nogc @safe
ushort
lengthOfMonth
()

Examples

assert(YearMonth(2000, Month.dec).lengthOfMonth == 31);