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
Subclasses with type arguments of type LocalDate in javax.time.calendarModifier and TypeClassDescription(package private) static final classRule implementation.Classes in javax.time.calendar that implement interfaces with type arguments of type LocalDateModifier and TypeClassDescriptionfinal classA date without a time-zone in the ISO-8601 calendar system, such as2007-12-03.Fields in javax.time.calendar declared as LocalDateModifier and TypeFieldDescriptionprivate final LocalDateLocalDateTime.dateThe date part.private final LocalDateOffsetDate.dateThe date.static final LocalDateLocalDate.MAX_DATEConstant for the maximum date on the proleptic ISO calendar system, +999999999-12-31.static final LocalDateLocalDate.MIN_DATEConstant 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.INSTANCEMethods 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 LocalDateLocalDate.create(int year, MonthOfYear monthOfYear, int dayOfMonth) Creates a local date from the year, month and day fields.protected LocalDateLocalDate.Rule.derive(Calendrical calendrical) (package private) static LocalDateISOChronology.getDateFromDayOfYear(int year, int dayOfYear) Calculates the date from a year and day-of-year.LocalDate.minus(PeriodProvider periodProvider) Returns a copy of thisLocalDatewith the specified date period subtracted.LocalDate.minusDays(long days) Returns a copy of thisLocalDatewith the specified number of days subtracted.LocalDate.minusMonths(long months) Returns a copy of thisLocalDatewith the specified period in months subtracted.LocalDate.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in months subtracted.LocalDate.minusWeeks(long weeks) Returns a copy of thisLocalDatewith the specified period in weeks subtracted.LocalDate.minusYears(long years) Returns a copy of thisLocalDatewith the specified period in years subtracted.LocalDate.minusYears(long years, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in years subtracted.static LocalDateLocalDate.now()Obtains the current date from the system clock in the default time-zone.static LocalDateObtains the current date from the specified clock.static LocalDateLocalDate.of(int year, int monthOfYear, int dayOfMonth) Obtains an instance ofLocalDatefrom a year, month and day.static LocalDateLocalDate.of(int year, MonthOfYear monthOfYear, int dayOfMonth) Obtains an instance ofLocalDatefrom a year, month and day.static LocalDateLocalDate.of(DateProvider dateProvider) Obtains an instance ofLocalDatefrom a date provider.static LocalDateLocalDate.ofEpochDays(long epochDays) Obtains an instance ofLocalDatefrom the epoch days count.static LocalDateLocalDate.ofModifiedJulianDays(long mjDays) Obtains an instance ofLocalDatefrom the Modified Julian Day (MJD).(package private) static LocalDateLocalDate.ofYearZeroDays(long epochDays) Converts a year zero day count to a date.static LocalDateObtains an instance ofLocalDatefrom a text string such as2007-12-03.static LocalDateLocalDate.parse(String text, DateTimeFormatter formatter) Obtains an instance ofLocalDatefrom a text string using a specific formatter.LocalDate.plus(PeriodProvider periodProvider) Returns a copy of thisLocalDatewith the specified date period added.LocalDate.plusDays(long days) Returns a copy of thisLocalDatewith the specified number of days added.LocalDate.plusMonths(long months) Returns a copy of thisLocalDatewith the specified period in months added.LocalDate.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisLocalDatewith the specified period in months added.LocalDate.plusWeeks(long weeks) Returns a copy of thisLocalDatewith the specified period in weeks added.LocalDate.plusYears(long years) Returns a copy of thisLocalDatewith the specified period in years added.LocalDate.plusYears(long years, DateResolver dateResolver) Returns a copy of thisLocalDatewith 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 LocalDateLocalDate.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 ofLocalDateinitialized 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 thisZonedDateTimeto aLocalDate.Clock.tomorrow()Gets tomorrow's date.LocalDate.with(DateAdjuster adjuster) Returns a copy of thisLocalDatewith the date altered using the adjuster.LocalDate.with(MonthOfYear monthOfYear) Returns a copy of thisLocalDatewith the month-of-year altered.LocalDate.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDatewith the month-of-year altered.LocalDate.withDayOfMonth(int dayOfMonth) Returns a copy of thisLocalDatewith the day-of-month altered.LocalDate.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisLocalDatewith the day-of-month altered.LocalDate.withDayOfYear(int dayOfYear) Returns a copy of thisLocalDatewith the day-of-year altered.LocalDate.withMonthOfYear(int monthOfYear) Returns a copy of thisLocalDatewith the month-of-year altered.LocalDate.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisLocalDatewith the month-of-year altered.LocalDate.withYear(int year) Returns a copy of thisLocalDatewith the year altered.LocalDate.withYear(int year, DateResolver dateResolver) Returns a copy of thisLocalDatewith 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.intCompares thisLocalDateto another date.(package private) static DayOfWeekISOChronology.getDayOfWeekFromDate(LocalDate date) Calculates the day-of-week from a date.(package private) static intISOChronology.getDayOfYearFromDate(LocalDate date) Calculates the day-of-year from a date.(package private) static intISOChronology.getWeekBasedYearFromDate(LocalDate date) Calculates the week-based-year.(package private) static intISOChronology.getWeekOfWeekBasedYearFromDate(LocalDate date) Calculates the week of week-based-year.booleanChecks if thisLocalDateis after the specified date.booleanChecks if thisLocalDateis before the specified date.LocalTime.Overflow.toLocalDateTime(LocalDate date) Creates aLocalDateTimefrom the specified date and this instance.private LocalDateTimeReturns a copy of this date-time with the new date and time, checking to see if a new object is in fact required.private OffsetDateOffsetDate.with(LocalDate date, ZoneOffset offset) Returns a new date based on this one, returningthiswhere possible.Constructors in javax.time.calendar with parameters of type LocalDateModifierConstructorDescriptionprivateLocalDateTime(LocalDate date, LocalTime time) Constructor.privateOffsetDate(LocalDate date, ZoneOffset offset) Constructor. -
Uses of LocalDate in javax.time.i18n
Fields in javax.time.i18n declared as LocalDateModifier and TypeFieldDescriptionprivate final LocalDateHistoricChronology.cutoverThe cutover from Julian to Gregorian.static final LocalDateHistoricDate.STANDARD_CUTOVERThe 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 HistoricChronologyObtains an instance ofHistoricChronologyspecifying the cutover date when the Gregorian/ISO calendar system was first used.static HistoricDateHistoricDate.of(LocalDate cutover, int historicYear, MonthOfYear monthOfYear, int dayOfMonth) Obtains an instance ofLocalDatefrom a year, month and day specifying the cutover date to use.Constructors in javax.time.i18n with parameters of type LocalDateModifierConstructorDescriptionprivateHistoricChronology(LocalDate cutover) Restrictive constructor.