Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Method | Description |
---|---|---|
static MonthDay |
MonthDay.now() |
Obtains the current month-day from the system clock in the default time-zone.
|
static MonthDay |
MonthDay.now(Clock clock) |
Obtains the current month-day from the specified clock.
|
static MonthDay |
MonthDay.of(int monthOfYear,
int dayOfMonth) |
Obtains an instance of
MonthDay . |
static MonthDay |
MonthDay.of(Calendrical calendrical) |
Obtains an instance of
MonthDay from a Calendrical. |
static MonthDay |
MonthDay.of(MonthOfYear monthOfYear,
int dayOfMonth) |
Obtains an instance of
MonthDay . |
static MonthDay |
MonthDay.parse(String text) |
Obtains an instance of
MonthDay from a text string such as --12-03 . |
static MonthDay |
MonthDay.parse(String text,
DateTimeFormatter formatter) |
Obtains an instance of
MonthDay from a text string using a specific formatter. |
MonthDay |
MonthDay.rollDayOfMonth(int days) |
Rolls the day-of-month, adding the specified number of days to a copy
of this
MonthDay . |
MonthDay |
MonthDay.rollMonthOfYear(int months) |
Rolls the month-of-year, adding the specified number of months to a copy
of this
MonthDay . |
MonthDay |
MonthDay.with(MonthOfYear monthOfYear) |
Returns a copy of this
MonthDay with the month-of-year altered. |
MonthDay |
MonthDay.withDayOfMonth(int dayOfMonth) |
Returns a copy of this
MonthDay with the day-of-month altered. |
MonthDay |
MonthDay.withMonthOfYear(int monthOfYear) |
Returns a copy of this
MonthDay with the month-of-year altered. |
Modifier and Type | Method | Description |
---|---|---|
static CalendricalRule<MonthDay> |
MonthDay.rule() |
Gets the rule for the month-day.
|
Modifier and Type | Method | Description |
---|---|---|
LocalDate |
Year.atMonthDay(MonthDay monthDay) |
Returns a date formed from this year at the specified month-day.
|
int |
MonthDay.compareTo(MonthDay other) |
Compares this month-day to another month-day.
|
boolean |
MonthDay.isAfter(MonthDay other) |
Is this month-day after the specified month-day.
|
boolean |
MonthDay.isBefore(MonthDay other) |
Is this month-day before the specified month-day.
|
boolean |
Year.isValidMonthDay(MonthDay monthDay) |
Checks if the month-day is valid for this year.
|
Copyright © 2019. All rights reserved.