The OpenD Programming Language

yearQuarter

  1. YearQuarter yearQuarter()
  2. YearQuarter yearQuarter()
    @safe pure @nogc const @safe pure nothrow @nogc @property
    yearQuarter
    ()

Examples

auto d = Date(2020, Month.may, 31);
auto yq = d.yearQuarter;
assert(yq.year == 2020);
assert(yq.quarter == Quarter.q2);

Meta