The OpenD Programming Language

endOfQuarter

Date for the last day in the quarter that this Date is in.

@safe pure @nogc @property const @safe pure nothrow @nogc
Date
endOfQuarter
()

Examples

assert(Date(1999, 1, 6).endOfQuarter == Date(1999, 3, 31));
assert(Date(1999, 2, 7).endOfQuarter == Date(1999, 3, 31));
assert(Date(2000, 2, 7).endOfQuarter == Date(2000, 3, 31));
assert(Date(2000, 6, 4).endOfQuarter == Date(2000, 6, 30));

Meta