Date.yearBC

Year B.C. of the Gregorian Calendar counting year 0 as 1 B.C.

  1. ushort yearBC [@property getter]
    struct Date
    @property const @safe pure
    ushort
    yearBC
    ()
  2. int yearBC [@property setter]

Throws

Examples

assert(Date(0, 1, 1).yearBC == 1);
assert(Date(-1, 1, 1).yearBC == 2);
assert(Date(-100, 1, 1).yearBC == 101);

Meta