The OpenD Programming Language

Date.year

Year of the Gregorian Calendar. Positive numbers are A.D. Non-positive are B.C.

  1. short year [@property getter]
    struct Date
    @property const @safe pure nothrow @nogc
    short
    year
    ()
  2. int year [@property setter]

Examples

assert(Date(1999, 7, 6).year == 1999);
assert(Date(2010, 10, 4).year == 2010);
assert(Date(-7, 4, 5).year == -7);

Meta