The OpenD Programming Language

quarter

Returns the quarter for a given month.

  1. Quarter quarter()
  2. Quarter quarter(Month month)
    @safe pure @nogc @safe pure @nogc nothrow
    quarter
  3. Quarter quarter()

Parameters

month Month

month

Examples

assert(Month.jan.quarter == Quarter.q1);
assert(Month.feb.quarter == Quarter.q1);
assert(Month.mar.quarter == Quarter.q1);
assert(Month.apr.quarter == Quarter.q2);
assert(Month.may.quarter == Quarter.q2);
assert(Month.jun.quarter == Quarter.q2);
assert(Month.jul.quarter == Quarter.q3);
assert(Month.aug.quarter == Quarter.q3);
assert(Month.sep.quarter == Quarter.q3);
assert(Month.oct.quarter == Quarter.q4);
assert(Month.nov.quarter == Quarter.q4);
assert(Month.dec.quarter == Quarter.q4);

Meta