Compares this year-month to another year-month.
Formats this year-month using the specified formatter.
Gets the value of the specified field from this year-month as an int.
Gets the value of the specified field from this year-month as a long.
Checks if this year-month is after the specified year-month.
Checks if this year-month is before the specified year-month.
Checks if the specified field is supported.
Checks if the specified unit is supported.
Returns a copy of this year-month with the specified amount subtracted.
Returns a copy of this year-month with the specified amount subtracted.
Returns a copy of this year-month with the specified amount added.
Returns a copy of this year-month with the specified amount added.
Queries this year-month using the specified query.
Gets the range of valid values for the specified field.
Calculates the amount of time until another year-month in terms of the specified unit.
Returns an adjusted copy of this year-month.
Returns a copy of this year-month with the specified field set to a new value.
Static
fromObtains an instance of YearMonth from a temporal object.
Static
nowStatic
ofStatic
parseObtains an instance of YearMonth from a text string such as 2007-12.
Optional
formatter: DateTimeFormatterGenerated using TypeDoc
A year-month in the ISO-8601 calendar system, such as 2007-12.
See java.time.YearMonth for full documentation