Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
org.joda.time.format |
Provides printing and parsing support for instants and durations.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
LocalDate.Property.addToCopy(int value)
Adds to this field in a copy of this LocalDate.
|
LocalDate |
LocalDate.Property.addWrapFieldToCopy(int value)
Adds to this field, possibly wrapped, in a copy of this LocalDate.
|
static LocalDate |
LocalDate.fromCalendarFields(Calendar calendar)
Constructs a LocalDate from a
java.util.Calendar
using exactly the same field values. |
static LocalDate |
LocalDate.fromDateFields(Date date)
Constructs a LocalDate from a
java.util.Date
using exactly the same field values. |
LocalDate |
LocalDate.Property.getLocalDate()
Gets the LocalDate object linked to this property.
|
LocalDate |
LocalDate.minus(ReadablePeriod period)
Returns a copy of this date with the specified period taken away.
|
LocalDate |
LocalDate.minusDays(int days)
Returns a copy of this date minus the specified number of days.
|
LocalDate |
LocalDate.minusMonths(int months)
Returns a copy of this date minus the specified number of months.
|
LocalDate |
LocalDate.minusWeeks(int weeks)
Returns a copy of this date minus the specified number of weeks.
|
LocalDate |
LocalDate.minusYears(int years)
Returns a copy of this date minus the specified number of years.
|
static LocalDate |
LocalDate.now()
Obtains a
LocalDate set to the current system millisecond time
using ISOChronology in the default time zone. |
static LocalDate |
LocalDate.now(Chronology chronology)
Obtains a
LocalDate set to the current system millisecond time
using the specified chronology. |
static LocalDate |
LocalDate.now(DateTimeZone zone)
Obtains a
LocalDate set to the current system millisecond time
using ISOChronology in the specified time zone. |
static LocalDate |
LocalDate.parse(String str)
Parses a
LocalDate from the specified string. |
static LocalDate |
LocalDate.parse(String str,
DateTimeFormatter formatter)
Parses a
LocalDate from the specified string using a formatter. |
LocalDate |
LocalDate.plus(ReadablePeriod period)
Returns a copy of this date with the specified period added.
|
LocalDate |
LocalDate.plusDays(int days)
Returns a copy of this date plus the specified number of days.
|
LocalDate |
LocalDate.plusMonths(int months)
Returns a copy of this date plus the specified number of months.
|
LocalDate |
LocalDate.plusWeeks(int weeks)
Returns a copy of this date plus the specified number of weeks.
|
LocalDate |
LocalDate.plusYears(int years)
Returns a copy of this date plus the specified number of years.
|
LocalDate |
LocalDate.Property.roundCeilingCopy()
Rounds to the highest whole unit of this field on a copy of this
LocalDate.
|
LocalDate |
LocalDate.Property.roundFloorCopy()
Rounds to the lowest whole unit of this field on a copy of this
LocalDate.
|
LocalDate |
LocalDate.Property.roundHalfCeilingCopy()
Rounds to the nearest whole unit of this field on a copy of this
LocalDate, favoring the ceiling if halfway.
|
LocalDate |
LocalDate.Property.roundHalfEvenCopy()
Rounds to the nearest whole unit of this field on a copy of this
LocalDate.
|
LocalDate |
LocalDate.Property.roundHalfFloorCopy()
Rounds to the nearest whole unit of this field on a copy of this
LocalDate, favoring the floor if halfway.
|
LocalDate |
LocalDate.Property.setCopy(int value)
Sets this field in a copy of the LocalDate.
|
LocalDate |
LocalDate.Property.setCopy(String text)
Sets this field in a copy of the LocalDate to a parsed text value.
|
LocalDate |
LocalDate.Property.setCopy(String text,
Locale locale)
Sets this field in a copy of the LocalDate to a parsed text value.
|
LocalDate |
YearMonthDay.toLocalDate()
Deprecated.
Converts this object to a LocalDate with the same date and chronology.
|
LocalDate |
LocalDateTime.toLocalDate()
Converts this object to a LocalDate with the same date and chronology.
|
LocalDate |
DateTime.toLocalDate()
Converts this object to a
LocalDate with the
same date and chronology. |
LocalDate |
DateMidnight.toLocalDate()
Deprecated.
Converts this object to a
LocalDate with the
same date and chronology. |
LocalDate |
YearMonth.toLocalDate(int dayOfMonth)
Converts this object to a LocalDate with the same year-month and chronology.
|
LocalDate |
MonthDay.toLocalDate(int year)
Converts this object to a LocalDate with the same month-day and chronology.
|
LocalDate |
LocalDate.withCenturyOfEra(int centuryOfEra)
Returns a copy of this date with the century of era field updated.
|
LocalDate |
LocalDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this date with the day of month field updated.
|
LocalDate |
LocalDate.withDayOfWeek(int dayOfWeek)
Returns a copy of this date with the day of week field updated.
|
LocalDate |
LocalDate.withDayOfYear(int dayOfYear)
Returns a copy of this date with the day of year field updated.
|
LocalDate |
LocalDate.withEra(int era)
Returns a copy of this date with the era field updated.
|
LocalDate |
LocalDate.withField(DateTimeFieldType fieldType,
int value)
Returns a copy of this date with the specified field set to a new value.
|
LocalDate |
LocalDate.withFieldAdded(DurationFieldType fieldType,
int amount)
Returns a copy of this date with the value of the specified field increased.
|
LocalDate |
LocalDate.withFields(ReadablePartial partial)
Returns a copy of this date with the partial set of fields replacing
those from this instance.
|
LocalDate |
LocalDate.Property.withMaximumValue()
Returns a new LocalDate with this field set to the maximum value
for this field.
|
LocalDate |
LocalDate.Property.withMinimumValue()
Returns a new LocalDate with this field set to the minimum value
for this field.
|
LocalDate |
LocalDate.withMonthOfYear(int monthOfYear)
Returns a copy of this date with the month of year field updated.
|
LocalDate |
LocalDate.withPeriodAdded(ReadablePeriod period,
int scalar)
Returns a copy of this date with the specified period added.
|
LocalDate |
LocalDate.withWeekOfWeekyear(int weekOfWeekyear)
Returns a copy of this date with the week of weekyear field updated.
|
LocalDate |
LocalDate.withWeekyear(int weekyear)
Returns a copy of this date with the weekyear field updated.
|
LocalDate |
LocalDate.withYear(int year)
Returns a copy of this date with the year field updated.
|
LocalDate |
LocalDate.withYearOfCentury(int yearOfCentury)
Returns a copy of this date with the year of century field updated.
|
LocalDate |
LocalDate.withYearOfEra(int yearOfEra)
Returns a copy of this date with the year of era field updated.
|
Modifier and Type | Method and Description |
---|---|
DateTime |
DateTime.withDate(LocalDate date)
Returns a copy of this datetime with the specified date, retaining the time fields.
|
Modifier and Type | Method and Description |
---|---|
LocalDate |
DateTimeFormatter.parseLocalDate(String text)
Parses only the local date from the given text, returning a new LocalDate.
|
Copyright © 2002–2023 Joda.org. All rights reserved.