Combines this year-month with a day-of-month to create a LocalDate.
Returns a LocalDate at the end of the 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.
Gets the month-of-year field using the Month enum.
Gets the month-of-year field from 1 to 12.
Gets the year field.
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 year is a leap year, according to the ISO proleptic calendar system rules.
Checks if the day-of-month is valid for this year-month.
Returns the length of the month, taking account of the year.
Returns the length of the year.
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 YearMonth with the specified number of months subtracted.
Returns a copy of this YearMonth with the specified number of years 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.
Returns a copy of this YearMonth with the specified number of months added.
Returns a copy of this YearMonth with the specified number of years 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.
Returns a copy of this YearMonth with the month-of-year altered.
Static
fromObtains an instance of YearMonth from a temporal object.
Static
nowStatic
ofObtains an instance of YearMonth from a year and month.
Static
parseObtains an instance of YearMonth from a text string such as 2007-12.
Optional
formatter: DateTimeFormatter
A year-month in the ISO-8601 calendar system, such as 2007-12.
See java.time.YearMonth for full documentation