The main API for dates, times, instants, and durations.
-
final class
A month-day in the ISO-8601 calendar system, such as --12-03
.
Obtains an instance of MonthDay
from a temporal object.
Obtains the current month-day from the system clock in the default time-zone.
Obtains the current month-day from the specified clock.
Obtains the current month-day from the system clock in the specified time-zone.
MonthDay.of(int month,
int dayOfMonth)
Obtains an instance of MonthDay
.
MonthDay.of(Month month,
int dayOfMonth)
Obtains an instance of MonthDay
.
Obtains an instance of MonthDay
from a text string such as --12-03
.
Obtains an instance of MonthDay
from a text string using a specific formatter.
Returns a copy of this MonthDay
with the month-of-year altered.
Returns a copy of this MonthDay
with the day-of-month altered.
Returns a copy of this MonthDay
with the month-of-year altered.
Combines this year with a month-day to create a LocalDate
.
int
Compares this month-day to another month-day.
boolean
Checks if this month-day is after the specified month-day.
boolean
Checks if this month-day is before the specified month-day.
boolean
Checks if the month-day is valid for this year.