Date.yearBC

ushort yearBC() @property const @safe pure

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

Throws

DateTimeException if isAD is true.
void yearBC(int year) @property @safe pure

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

Parameters

yearThe year B.C. to set this Date's year to.

Throws

DateTimeException if a non-positive value

is given.