YearMonth.quarter

Returns the quarter of the year (1–4) for the year-month.

struct YearMonth
@safe pure nothrow @nogc @property
quarter
()

Examples

assert(YearMonth(1999, Month.jan).quarter == 1);