SysTime.year

short year() @property @safe const nothrow scope

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

void year(int year) @property @safe scope

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

Parameters

yearThe year to set this SysTime's year to.

Throws

DateTimeException if the new year is not

a leap year and the resulting date would be on February 29th.