DateTimeException if the new year is not
a leap year and if the resulting date would be on February 29th.
short year() @property const @safe pure nothrow @nogcYear of the Gregorian Calendar. Positive numbers are A.D. Non-positive are B.C.
void year(int year) @property @safe pureYear of the Gregorian Calendar. Positive numbers are A.D. Non-positive are B.C.
year | The year to set this DateTime's year to. |
DateTimeException if the new year is not
a leap year and if the resulting date would be on February 29th.