Obtains a YearMonth with the specified number of months added.
Obtains a YearMonth with the specified number of months added.
if the result exceeds the supported range.
Obtains a YearMonth with the specified number of months subtracted.
Obtains a YearMonth with the specified number of months subtracted.
if the result exceeds the supported range.
Obtains a LocalDate by combining this year-month with the specified day.
Obtains a LocalDate by combining this year-month with the specified day.
if the day is invalid for the year-month
Returns true
if this year-month is before the specified one.
Returns true
if this year-month is equal to or before the specified one.
Returns true
if this year-month is after the specified one.
Returns true
if this year-month is equal to or after the specified one.
Formats this year-month using the specified formatter.
Formats this year-month using the specified formatter.
- if an error occurs during printing
(richYearMonth: any2stringadd[RichYearMonth]).+(other)
Enriches YearMonth instances with additional methods.