Obtains a year with the specified number of years added.
Obtains a year with the specified number of years subtracted.
Obtains a LocalDate by combining this year with the specified MonthDay.
Obtains a YearMonth by combining this year with the specified month, from 1 (January) to 12 (December).
Obtains a YearMonth by combining this year with the specified month, from 1 (January) to 12 (December).
if the month is invalid.
Obtains a YearMonth by combining this year with the specified Month.
Returns true
if this year is before the specified one.
Returns true
if this year is equal to or before the specified one.
Returns true
if this year is after the specified one.
Returns true
if this year is equal to or after the specified one.
Formats this year using the specified formatter.
Formats this year using the specified formatter.
- if an error occurs during printing
(richYear: any2stringadd[RichYear]).+(other)
Enriches Year instances with additional methods.