Uses of Class
org.threeten.bp.LocalDate
Packages that use LocalDate
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Access to date and time using fields and units.
-
Uses of LocalDate in org.threeten.bp
Fields in org.threeten.bp declared as LocalDateModifier and TypeFieldDescriptionstatic LocalDate
LocalDate.MAX
The maximum supportedLocalDate
, '+999999999-12-31'.static LocalDate
LocalDate.MIN
The minimum supportedLocalDate
, '-999999999-01-01'.Methods in org.threeten.bp that return LocalDateModifier and TypeMethodDescriptionYear.atDay(int dayOfYear)
Combines this year with a day-of-year to create aLocalDate
.YearMonth.atDay(int dayOfMonth)
Combines this year-month with a day-of-month to create aLocalDate
.YearMonth.atEndOfMonth()
Returns aLocalDate
at the end of the month.Year.atMonthDay(MonthDay monthDay)
Combines this year with a month-day to create aLocalDate
.MonthDay.atYear(int year)
Combines this month-day with a year to create aLocalDate
.static LocalDate
LocalDate.from(TemporalAccessor temporal)
Obtains an instance ofLocalDate
from a temporal object.LocalDate.minus(long amountToSubtract, TemporalUnit unit)
Returns a copy of this date with the specified period subtracted.LocalDate.minus(TemporalAmount amount)
Returns a copy of this date with the specified period subtracted.LocalDate.minusDays(long daysToSubtract)
Returns a copy of thisLocalDate
with the specified number of days subtracted.LocalDate.minusMonths(long monthsToSubtract)
Returns a copy of thisLocalDate
with the specified period in months subtracted.LocalDate.minusWeeks(long weeksToSubtract)
Returns a copy of thisLocalDate
with the specified period in weeks subtracted.LocalDate.minusYears(long yearsToSubtract)
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
Obtains the current date from the system clock in the specified time-zone.static LocalDate
LocalDate.of(int year, int month, int dayOfMonth)
Obtains an instance ofLocalDate
from a year, month and day.static LocalDate
Obtains an instance ofLocalDate
from a year, month and day.static LocalDate
LocalDate.ofEpochDay(long epochDay)
Obtains an instance ofLocalDate
from the epoch day count.static LocalDate
LocalDate.ofYearDay(int year, int dayOfYear)
Obtains an instance ofLocalDate
from a year and day-of-year.static LocalDate
LocalDate.parse(CharSequence text)
Obtains an instance ofLocalDate
from a text string such as2007-12-23
.static LocalDate
LocalDate.parse(CharSequence text, DateTimeFormatter formatter)
Obtains an instance ofLocalDate
from a text string using a specific formatter.LocalDate.plus(long amountToAdd, TemporalUnit unit)
Returns a copy of this date with the specified period added.LocalDate.plus(TemporalAmount amount)
Returns a copy of this date with the specified period added.LocalDate.plusDays(long daysToAdd)
Returns a copy of thisLocalDate
with the specified number of days added.LocalDate.plusMonths(long monthsToAdd)
Returns a copy of thisLocalDate
with the specified period in months added.LocalDate.plusWeeks(long weeksToAdd)
Returns a copy of thisLocalDate
with the specified period in weeks added.LocalDate.plusYears(long yearsToAdd)
Returns a copy of thisLocalDate
with the specified period in years added.LocalDateTime.toLocalDate()
Gets theLocalDate
part of this date-time.OffsetDateTime.toLocalDate()
Gets theLocalDate
part of this date-time.ZonedDateTime.toLocalDate()
Gets theLocalDate
part of this date-time.LocalDate.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date.LocalDate.with(TemporalField field, long newValue)
Returns a copy of this date with the specified field set to a new value.LocalDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this date with the day-of-month altered.LocalDate.withDayOfYear(int dayOfYear)
Returns a copy of this date with the day-of-year altered.LocalDate.withMonth(int month)
Returns a copy of this date with the month-of-year altered.LocalDate.withYear(int year)
Returns a copy of this date with the year altered.Methods in org.threeten.bp with parameters of type LocalDateModifier and TypeMethodDescriptionCombines this time with a date to create aLocalDateTime
.Combines this time with a date to create anOffsetDateTime
.static Period
Obtains aPeriod
consisting of the number of years, months, and days between two dates.static LocalDateTime
Obtains an instance ofLocalDateTime
from a date and time.static OffsetDateTime
OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset)
Obtains an instance ofOffsetDateTime
from a date, time and offset.static ZonedDateTime
Obtains an instance ofZonedDateTime
from a local date and time. -
Uses of LocalDate in org.threeten.bp.chrono
Methods in org.threeten.bp.chrono that return LocalDateModifier and TypeMethodDescriptionIsoChronology.date(int prolepticYear, int month, int dayOfMonth)
Obtains an ISO local date from the proleptic-year, month-of-year and day-of-month fields.Obtains an ISO local date from the era, year-of-era, month-of-year and day-of-month fields.IsoChronology.date(TemporalAccessor temporal)
Obtains an ISO local date from another date-time object.IsoChronology.dateEpochDay(long epochDay)
IsoChronology.dateNow()
Obtains the current ISO local date from the system clock in the default time-zone.Obtains the current ISO local date from the specified clock.Obtains the current ISO local date from the system clock in the specified time-zone.IsoChronology.dateYearDay(int prolepticYear, int dayOfYear)
Obtains an ISO local date from the proleptic-year and day-of-year fields.IsoChronology.dateYearDay(Era era, int yearOfEra, int dayOfYear)
Obtains an ISO local date from the era, year-of-era and day-of-year fields.IsoChronology.resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)
Methods in org.threeten.bp.chrono with parameters of type LocalDateModifier and TypeMethodDescriptionstatic JapaneseEra
JapaneseEra.registerEra(LocalDate since, String name)
Registers an additional instance ofJapaneseEra
. -
Uses of LocalDate in org.threeten.bp.temporal
Methods in org.threeten.bp.temporal that return types with arguments of type LocalDateModifier and TypeMethodDescriptionstatic TemporalQuery<LocalDate>
TemporalQueries.localDate()
A query forLocalDate
returning null if not found.