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 and Description |
---|---|
DateResolver |
CalendricalContext.getDateResolver()
Gets the date resolver to use.
|
static DateResolver |
DateResolvers.nextValid()
Returns the next valid day resolver, which adjusts the date to be
valid by moving to the first of the next month.
|
static DateResolver |
DateResolvers.partLenient()
Returns the part lenient resolver, which adjusts the date to be
valid by moving it to the next month by the number of days that
are invalid up to the 31st of the month.
|
static DateResolver |
DateResolvers.previousValid()
Returns the previous valid day resolver, which adjusts the date to be
valid by moving to the last valid day of the month.
|
static DateResolver |
DateResolvers.strict()
Returns the strict resolver which does not manipulate the state
in any way, resulting in an exception for all invalid values.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
YearMonth.adjustDate(LocalDate date,
DateResolver resolver)
Adjusts a date to have the value of this year-month, using a resolver to
handle the case when the day-of-month becomes invalid.
|
LocalDate |
MonthDay.adjustDate(LocalDate date,
DateResolver resolver)
Adjusts a date to have the value of this month-day, using a resolver to
handle the case when the day-of-month becomes invalid.
|
LocalDate |
Year.adjustDate(LocalDate date,
DateResolver resolver)
Adjusts a date to have the value of this year, using a resolver to
handle the case when the day-of-month becomes invalid.
|
LocalDate |
LocalDate.minusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in months subtracted. |
OffsetDateTime |
OffsetDateTime.minusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the specified period in months subtracted. |
LocalDateTime |
LocalDateTime.minusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the specified period in months subtracted. |
OffsetDate |
OffsetDate.minusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the specified period in months subtracted. |
LocalDate |
LocalDate.minusYears(long years,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in years subtracted. |
OffsetDateTime |
OffsetDateTime.minusYears(long years,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the specified period in years subtracted. |
LocalDateTime |
LocalDateTime.minusYears(long years,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the specified period in years subtracted. |
OffsetDate |
OffsetDate.minusYears(long years,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the specified period in years subtracted. |
LocalDate |
LocalDate.plusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in months added. |
OffsetDateTime |
OffsetDateTime.plusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the specified period in months added. |
LocalDateTime |
LocalDateTime.plusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the specified period in months added. |
OffsetDate |
OffsetDate.plusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the specified period in months added. |
LocalDate |
LocalDate.plusYears(long years,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in years added. |
OffsetDateTime |
OffsetDateTime.plusYears(long years,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the specified period in years added. |
LocalDateTime |
LocalDateTime.plusYears(long years,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the specified period in years added. |
OffsetDate |
OffsetDate.plusYears(long years,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the specified period in years added. |
LocalDate |
LocalDate.with(MonthOfYear monthOfYear,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the month-of-year altered. |
OffsetDateTime |
OffsetDateTime.with(MonthOfYear monthOfYear,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the month-of-year altered. |
LocalDateTime |
LocalDateTime.with(MonthOfYear monthOfYear,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the month-of-year altered. |
OffsetDate |
OffsetDate.with(MonthOfYear monthOfYear,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the month-of-year altered. |
LocalDate |
LocalDate.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the day-of-month altered. |
OffsetDateTime |
OffsetDateTime.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the day-of-month altered. |
LocalDateTime |
LocalDateTime.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the day-of-month altered. |
OffsetDate |
OffsetDate.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the day-of-month altered. |
LocalDate |
LocalDate.withMonthOfYear(int monthOfYear,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the month-of-year altered. |
OffsetDateTime |
OffsetDateTime.withMonthOfYear(int monthOfYear,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the month-of-year altered. |
LocalDateTime |
LocalDateTime.withMonthOfYear(int monthOfYear,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the month-of-year altered. |
OffsetDate |
OffsetDate.withMonthOfYear(int monthOfYear,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the month-of-year altered. |
LocalDate |
LocalDate.withYear(int year,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the year altered. |
OffsetDateTime |
OffsetDateTime.withYear(int year,
DateResolver dateResolver)
Returns a copy of this
OffsetDateTime with the year altered. |
LocalDateTime |
LocalDateTime.withYear(int year,
DateResolver dateResolver)
Returns a copy of this
LocalDateTime with the year altered. |
OffsetDate |
OffsetDate.withYear(int year,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the year altered. |
Copyright © 2014. All rights reserved.