DayMinus |
Exception | Condition |
---|---|
OverflowException | In the unlikely event of this method requiring a Day with a year less than 1 or greater than 9999. |
This will happily cross the borders between months and years, and it will always ensure that the returned result is a valid Day, unless it is outside the range allowed by Day (0001-01-01 to 9999-12-31 inclusive), in which case it will throw an OverflowException.
For example 2020-02-14 minus 365 days would give a result of 2019-02-14.
Day is immutable, so calling this method will not change this Day.