Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
javax.time.i18n |
Provides classes representing dates and times in alternate calendar systems.
|
Modifier and Type | Field and Description |
---|---|
static LocalDate |
LocalDate.MAX_DATE
Constant for the maximum date on the proleptic ISO calendar system, +999999999-12-31.
|
static LocalDate |
LocalDate.MIN_DATE
Constant for the minimum date on the proleptic ISO calendar system, -999999999-01-01.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
LocalDate.adjustDate(LocalDate date)
Adjusts a date to have the value of this date.
|
LocalDate |
OffsetDateTime.adjustDate(LocalDate date)
Adjusts a date to have the value of the date part of this object.
|
LocalDate |
LocalDateTime.adjustDate(LocalDate date)
Adjusts a date to have the value of the date part of this object.
|
LocalDate |
YearMonth.adjustDate(LocalDate date)
Adjusts a date to have the value of this year-month, returning a new date.
|
LocalDate |
DateAdjuster.adjustDate(LocalDate date)
Adjusts the input date returning the adjusted date.
|
LocalDate |
MonthDay.adjustDate(LocalDate date)
Adjusts a date to have the value of this month-day, returning a new date.
|
LocalDate |
OffsetDate.adjustDate(LocalDate date)
Adjusts a date to have the value of the date part of this object.
|
LocalDate |
Year.adjustDate(LocalDate date)
Adjusts a date to have the value of this year, returning a new date.
|
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 |
YearMonth.atDay(int dayOfMonth)
Returns a date formed from this year-month at the specified day-of-month.
|
LocalDate |
Year.atDay(int dayOfYear)
Returns a date formed from this year at the specified day-of-year.
|
LocalDate |
Year.atMonthDay(MonthDay monthDay)
Returns a date formed from this year at the specified month-day.
|
LocalDate |
MonthDay.atYear(int year)
Returns a date formed from this month-day at the specified year.
|
LocalDate |
LocalDate.minus(PeriodProvider periodProvider)
Returns a copy of this
LocalDate with the specified date period subtracted. |
LocalDate |
LocalDate.minusDays(long days)
Returns a copy of this
LocalDate with the specified number of days subtracted. |
LocalDate |
LocalDate.minusMonths(long months)
Returns a copy of this
LocalDate with the specified period in months subtracted. |
LocalDate |
LocalDate.minusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in months subtracted. |
LocalDate |
LocalDate.minusWeeks(long weeks)
Returns a copy of this
LocalDate with the specified period in weeks subtracted. |
LocalDate |
LocalDate.minusYears(long years)
Returns a copy of this
LocalDate with the specified period in years subtracted. |
LocalDate |
LocalDate.minusYears(long years,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in years subtracted. |
static LocalDate |
LocalDate.now()
Obtains the current date from the system clock in the default time-zone.
|
static LocalDate |
LocalDate.now(Clock clock)
Obtains the current date from the specified clock.
|
static LocalDate |
LocalDate.of(DateProvider dateProvider)
Obtains an instance of
LocalDate from a date provider. |
static LocalDate |
LocalDate.of(int year,
int monthOfYear,
int dayOfMonth)
Obtains an instance of
LocalDate from a year, month and day. |
static LocalDate |
LocalDate.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth)
Obtains an instance of
LocalDate from a year, month and day. |
static LocalDate |
LocalDate.ofEpochDays(long epochDays)
Obtains an instance of
LocalDate from the epoch days count. |
static LocalDate |
LocalDate.ofModifiedJulianDays(long mjDays)
Obtains an instance of
LocalDate from the Modified Julian Day (MJD). |
static LocalDate |
LocalDate.parse(String text)
Obtains an instance of
LocalDate from a text string such as 2007-12-03 . |
static LocalDate |
LocalDate.parse(String text,
DateTimeFormatter formatter)
Obtains an instance of
LocalDate from a text string using a specific formatter. |
LocalDate |
LocalDate.plus(PeriodProvider periodProvider)
Returns a copy of this
LocalDate with the specified date period added. |
LocalDate |
LocalDate.plusDays(long days)
Returns a copy of this
LocalDate with the specified number of days added. |
LocalDate |
LocalDate.plusMonths(long months)
Returns a copy of this
LocalDate with the specified period in months added. |
LocalDate |
LocalDate.plusMonths(long months,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in months added. |
LocalDate |
LocalDate.plusWeeks(long weeks)
Returns a copy of this
LocalDate with the specified period in weeks added. |
LocalDate |
LocalDate.plusYears(long years)
Returns a copy of this
LocalDate with the specified period in years added. |
LocalDate |
LocalDate.plusYears(long years,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the specified period in years added. |
LocalDate |
CalendricalContext.resolveDate(int year,
int month,
int dayOfMonth)
Resolves the year, month and day-of-month to a date using ISO chronology rules.
|
LocalDate |
DateResolver.resolveDate(int year,
MonthOfYear monthOfYear,
int dayOfMonth)
Resolves the combination of year, month and day into a date.
|
LocalDate |
Clock.today()
Gets today's date.
|
LocalDate |
LocalDate.toLocalDate()
Converts this date to a
LocalDate , trivially
returning this . |
LocalDate |
ZonedDateTime.toLocalDate()
Converts this
ZonedDateTime to a LocalDate . |
LocalDate |
OffsetDateTime.toLocalDate()
Converts this date-time to a
LocalDate . |
LocalDate |
LocalDateTime.toLocalDate()
Converts this date-time to a
LocalDate . |
LocalDate |
DateProvider.toLocalDate()
Returns an instance of
LocalDate initialized from the
state of this object. |
LocalDate |
OffsetDate.toLocalDate()
Converts this date to a
LocalDate . |
LocalDate |
Clock.tomorrow()
Gets tomorrow's date.
|
LocalDate |
LocalDate.with(DateAdjuster adjuster)
Returns a copy of this
LocalDate with the date altered using the adjuster. |
LocalDate |
LocalDate.with(MonthOfYear monthOfYear)
Returns a copy of this
LocalDate with the month-of-year altered. |
LocalDate |
LocalDate.with(MonthOfYear monthOfYear,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the month-of-year altered. |
LocalDate |
LocalDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this
LocalDate with the day-of-month altered. |
LocalDate |
LocalDate.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the day-of-month altered. |
LocalDate |
LocalDate.withDayOfYear(int dayOfYear)
Returns a copy of this
LocalDate with the day-of-year altered. |
LocalDate |
LocalDate.withMonthOfYear(int monthOfYear)
Returns a copy of this
LocalDate with the month-of-year altered. |
LocalDate |
LocalDate.withMonthOfYear(int monthOfYear,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the month-of-year altered. |
LocalDate |
LocalDate.withYear(int year)
Returns a copy of this
LocalDate with the year altered. |
LocalDate |
LocalDate.withYear(int year,
DateResolver dateResolver)
Returns a copy of this
LocalDate with the year altered. |
LocalDate |
Clock.yesterday()
Gets yesterday's date.
|
Modifier and Type | Method and Description |
---|---|
static CalendricalRule<LocalDate> |
LocalDate.rule()
Gets the rule for
LocalDate . |
Modifier and Type | Method and Description |
---|---|
LocalDate |
LocalDate.adjustDate(LocalDate date)
Adjusts a date to have the value of this date.
|
LocalDate |
OffsetDateTime.adjustDate(LocalDate date)
Adjusts a date to have the value of the date part of this object.
|
LocalDate |
LocalDateTime.adjustDate(LocalDate date)
Adjusts a date to have the value of the date part of this object.
|
LocalDate |
YearMonth.adjustDate(LocalDate date)
Adjusts a date to have the value of this year-month, returning a new date.
|
LocalDate |
DateAdjuster.adjustDate(LocalDate date)
Adjusts the input date returning the adjusted date.
|
LocalDate |
MonthDay.adjustDate(LocalDate date)
Adjusts a date to have the value of this month-day, returning a new date.
|
LocalDate |
OffsetDate.adjustDate(LocalDate date)
Adjusts a date to have the value of the date part of this object.
|
LocalDate |
Year.adjustDate(LocalDate date)
Adjusts a date to have the value of this year, returning a new date.
|
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.
|
int |
LocalDate.compareTo(LocalDate other)
Compares this
LocalDate to another date. |
boolean |
LocalDate.isAfter(LocalDate other)
Checks if this
LocalDate is after the specified date. |
boolean |
LocalDate.isBefore(LocalDate other)
Checks if this
LocalDate is before the specified date. |
LocalDateTime |
LocalTime.Overflow.toLocalDateTime(LocalDate date)
Creates a
LocalDateTime from the specified date and this instance. |
Modifier and Type | Field and Description |
---|---|
static LocalDate |
HistoricDate.STANDARD_CUTOVER
The standard cutover date between the Julian and Gregorian calendar system of 1582-10-15.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
HistoricChronology.getCutover()
Gets the cutover date of the chronology.
|
LocalDate |
CopticDate.toLocalDate()
Converts this date to a
LocalDate , which is the default representation
of a date, and provides values in the ISO-8601 calendar system. |
LocalDate |
HistoricDate.toLocalDate()
Converts this date to an ISO-8601 calendar system
LocalDate . |
Modifier and Type | Method and Description |
---|---|
static HistoricChronology |
HistoricChronology.cutoverAt(LocalDate cutover)
Obtains an instance of
HistoricChronology specifying the
cutover date when the Gregorian/ISO calendar system was first used. |
static HistoricDate |
HistoricDate.of(LocalDate cutover,
int historicYear,
MonthOfYear monthOfYear,
int dayOfMonth)
Obtains an instance of
LocalDate from a year, month and day
specifying the cutover date to use. |
Copyright © 2014. All rights reserved.