Uses of Class
javax.time.calendar.LocalDate
Packages that use LocalDate
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes representing dates and times in alternate calendar systems.
-
Uses of LocalDate in javax.time.calendar
Fields in javax.time.calendar declared as LocalDateModifier and TypeFieldDescriptionprivate final LocalDate
LocalDateTime.date
The date part.private final LocalDate
OffsetDate.date
The date.static final LocalDate
LocalDate.MAX_DATE
Constant for the maximum date on the proleptic ISO calendar system, +999999999-12-31.static final LocalDate
LocalDate.MIN_DATE
Constant for the minimum date on the proleptic ISO calendar system, -999999999-01-01.Fields in javax.time.calendar with type parameters of type LocalDateModifier and TypeFieldDescriptionprivate static final CalendricalRule<LocalDate>
LocalDate.Rule.INSTANCE
Methods in javax.time.calendar that return LocalDateModifier and TypeMethodDescriptionDateAdjuster.adjustDate
(LocalDate date) Adjusts the input date returning the adjusted date.DateAdjusters.DayOfWeekInMonth.adjustDate
(LocalDate date) Adjusts the input date returning the adjusted date.DateAdjusters.RelativeDayOfWeek.adjustDate
(LocalDate date) Adjusts the input date returning the adjusted date.LocalDate.adjustDate
(LocalDate date) Adjusts a date to have the value of this date.LocalDateTime.adjustDate
(LocalDate date) Adjusts a date to have the value of the date part of this object.MonthDay.adjustDate
(LocalDate date) Adjusts a date to have the value of this month-day, returning a new date.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.OffsetDate.adjustDate
(LocalDate date) Adjusts a date to have the value of the date part of this object.OffsetDateTime.adjustDate
(LocalDate date) Adjusts a date to have the value of the date part of this object.Year.adjustDate
(LocalDate date) Adjusts a date to have the value of this year, returning a new date.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.YearMonth.adjustDate
(LocalDate date) Adjusts a date to have the value of this year-month, returning a new date.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.Year.atDay
(int dayOfYear) Returns a date formed from this year at the specified day-of-year.YearMonth.atDay
(int dayOfMonth) Returns a date formed from this year-month at the specified day-of-month.Year.atMonthDay
(MonthDay monthDay) Returns a date formed from this year at the specified month-day.MonthDay.atYear
(int year) Returns a date formed from this month-day at the specified year.private static LocalDate
LocalDate.create
(int year, MonthOfYear monthOfYear, int dayOfMonth) Creates a local date from the year, month and day fields.protected LocalDate
LocalDate.Rule.derive
(Calendrical calendrical) (package private) static LocalDate
ISOChronology.getDateFromDayOfYear
(int year, int dayOfYear) Calculates the date from a year and day-of-year.LocalDate.minus
(PeriodProvider periodProvider) Returns a copy of thisLocalDate
with the specified date period subtracted.LocalDate.minusDays
(long days) Returns a copy of thisLocalDate
with the specified number of days subtracted.LocalDate.minusMonths
(long months) Returns a copy of thisLocalDate
with the specified period in months subtracted.LocalDate.minusMonths
(long months, DateResolver dateResolver) Returns a copy of thisLocalDate
with the specified period in months subtracted.LocalDate.minusWeeks
(long weeks) Returns a copy of thisLocalDate
with the specified period in weeks subtracted.LocalDate.minusYears
(long years) Returns a copy of thisLocalDate
with the specified period in years subtracted.LocalDate.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisLocalDate
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
Obtains the current date from the specified clock.static LocalDate
LocalDate.of
(int year, int monthOfYear, int dayOfMonth) Obtains an instance ofLocalDate
from a year, month and day.static LocalDate
LocalDate.of
(int year, MonthOfYear monthOfYear, int dayOfMonth) Obtains an instance ofLocalDate
from a year, month and day.static LocalDate
LocalDate.of
(DateProvider dateProvider) Obtains an instance ofLocalDate
from a date provider.static LocalDate
LocalDate.ofEpochDays
(long epochDays) Obtains an instance ofLocalDate
from the epoch days count.static LocalDate
LocalDate.ofModifiedJulianDays
(long mjDays) Obtains an instance ofLocalDate
from the Modified Julian Day (MJD).(package private) static LocalDate
LocalDate.ofYearZeroDays
(long epochDays) Converts a year zero day count to a date.static LocalDate
Obtains an instance ofLocalDate
from a text string such as2007-12-03
.static LocalDate
LocalDate.parse
(String text, DateTimeFormatter formatter) Obtains an instance ofLocalDate
from a text string using a specific formatter.LocalDate.plus
(PeriodProvider periodProvider) Returns a copy of thisLocalDate
with the specified date period added.LocalDate.plusDays
(long days) Returns a copy of thisLocalDate
with the specified number of days added.LocalDate.plusMonths
(long months) Returns a copy of thisLocalDate
with the specified period in months added.LocalDate.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisLocalDate
with the specified period in months added.LocalDate.plusWeeks
(long weeks) Returns a copy of thisLocalDate
with the specified period in weeks added.LocalDate.plusYears
(long years) Returns a copy of thisLocalDate
with the specified period in years added.LocalDate.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisLocalDate
with the specified period in years added.CalendricalContext.resolveDate
(int year, int month, int dayOfMonth) Resolves the year, month and day-of-month to a date using ISO chronology rules.DateResolver.resolveDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Resolves the combination of year, month and day into a date.DateResolvers.NextValid.resolveDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Resolves the combination of year, month and day into a date.DateResolvers.PartLenient.resolveDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Resolves the combination of year, month and day into a date.DateResolvers.PreviousValid.resolveDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Resolves the combination of year, month and day into a date.DateResolvers.Strict.resolveDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Resolves the combination of year, month and day into a date.private LocalDate
LocalDate.resolveDate
(DateResolver dateResolver, int year, MonthOfYear month, int day) Resolves the date, handling incorrectly implemented resolvers.Clock.today()
Gets today's date.DateProvider.toLocalDate()
Returns an instance ofLocalDate
initialized from the state of this object.LocalDate.toLocalDate()
Converts this date to aLocalDate
, trivially returningthis
.LocalDateTime.toLocalDate()
Converts this date-time to aLocalDate
.OffsetDate.toLocalDate()
Converts this date to aLocalDate
.OffsetDateTime.toLocalDate()
Converts this date-time to aLocalDate
.ZonedDateTime.toLocalDate()
Converts thisZonedDateTime
to aLocalDate
.Clock.tomorrow()
Gets tomorrow's date.LocalDate.with
(DateAdjuster adjuster) Returns a copy of thisLocalDate
with the date altered using the adjuster.LocalDate.with
(MonthOfYear monthOfYear) Returns a copy of thisLocalDate
with the month-of-year altered.LocalDate.with
(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDate
with the month-of-year altered.LocalDate.withDayOfMonth
(int dayOfMonth) Returns a copy of thisLocalDate
with the day-of-month altered.LocalDate.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisLocalDate
with the day-of-month altered.LocalDate.withDayOfYear
(int dayOfYear) Returns a copy of thisLocalDate
with the day-of-year altered.LocalDate.withMonthOfYear
(int monthOfYear) Returns a copy of thisLocalDate
with the month-of-year altered.LocalDate.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDate
with the month-of-year altered.LocalDate.withYear
(int year) Returns a copy of thisLocalDate
with the year altered.LocalDate.withYear
(int year, DateResolver dateResolver) Returns a copy of thisLocalDate
with the year altered.Clock.yesterday()
Gets yesterday's date.Methods in javax.time.calendar that return types with arguments of type LocalDateModifier and TypeMethodDescriptionstatic CalendricalRule<LocalDate>
LocalDate.rule()
Gets the rule forLocalDate
.Methods in javax.time.calendar with parameters of type LocalDateModifier and TypeMethodDescriptionDateAdjuster.adjustDate
(LocalDate date) Adjusts the input date returning the adjusted date.DateAdjusters.DayOfWeekInMonth.adjustDate
(LocalDate date) Adjusts the input date returning the adjusted date.DateAdjusters.RelativeDayOfWeek.adjustDate
(LocalDate date) Adjusts the input date returning the adjusted date.LocalDate.adjustDate
(LocalDate date) Adjusts a date to have the value of this date.LocalDateTime.adjustDate
(LocalDate date) Adjusts a date to have the value of the date part of this object.MonthDay.adjustDate
(LocalDate date) Adjusts a date to have the value of this month-day, returning a new date.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.OffsetDate.adjustDate
(LocalDate date) Adjusts a date to have the value of the date part of this object.OffsetDateTime.adjustDate
(LocalDate date) Adjusts a date to have the value of the date part of this object.Year.adjustDate
(LocalDate date) Adjusts a date to have the value of this year, returning a new date.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.YearMonth.adjustDate
(LocalDate date) Adjusts a date to have the value of this year-month, returning a new date.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.int
Compares thisLocalDate
to another date.(package private) static DayOfWeek
ISOChronology.getDayOfWeekFromDate
(LocalDate date) Calculates the day-of-week from a date.(package private) static int
ISOChronology.getDayOfYearFromDate
(LocalDate date) Calculates the day-of-year from a date.(package private) static int
ISOChronology.getWeekBasedYearFromDate
(LocalDate date) Calculates the week-based-year.(package private) static int
ISOChronology.getWeekOfWeekBasedYearFromDate
(LocalDate date) Calculates the week of week-based-year.boolean
Checks if thisLocalDate
is after the specified date.boolean
Checks if thisLocalDate
is before the specified date.LocalTime.Overflow.toLocalDateTime
(LocalDate date) Creates aLocalDateTime
from the specified date and this instance.private LocalDateTime
Returns a copy of this date-time with the new date and time, checking to see if a new object is in fact required.private OffsetDate
OffsetDate.with
(LocalDate date, ZoneOffset offset) Returns a new date based on this one, returningthis
where possible.Constructors in javax.time.calendar with parameters of type LocalDateModifierConstructorDescriptionprivate
LocalDateTime
(LocalDate date, LocalTime time) Constructor.private
OffsetDate
(LocalDate date, ZoneOffset offset) Constructor. -
Uses of LocalDate in javax.time.i18n
Fields in javax.time.i18n declared as LocalDateModifier and TypeFieldDescriptionprivate final LocalDate
HistoricChronology.cutover
The cutover from Julian to Gregorian.static final LocalDate
HistoricDate.STANDARD_CUTOVER
The standard cutover date between the Julian and Gregorian calendar system of 1582-10-15.Methods in javax.time.i18n that return LocalDateModifier and TypeMethodDescriptionHistoricChronology.getCutover()
Gets the cutover date of the chronology.CopticDate.toLocalDate()
Converts this date to aLocalDate
, which is the default representation of a date, and provides values in the ISO-8601 calendar system.HistoricDate.toLocalDate()
Converts this date to an ISO-8601 calendar systemLocalDate
.Methods in javax.time.i18n with parameters of type LocalDateModifier and TypeMethodDescriptionstatic HistoricChronology
Obtains an instance ofHistoricChronology
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 ofLocalDate
from a year, month and day specifying the cutover date to use.Constructors in javax.time.i18n with parameters of type LocalDateModifierConstructorDescriptionprivate
HistoricChronology
(LocalDate cutover) Restrictive constructor.