Uses of Class
org.joda.time.LocalDate
Packages that use LocalDate
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Provides printing and parsing support for instants and durations.
-
Uses of LocalDate in org.joda.time
Methods in org.joda.time that return LocalDateModifier and TypeMethodDescriptionLocalDate.Property.addToCopy
(int value) Adds to this field in a copy of this 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 ajava.util.Calendar
using exactly the same field values.static LocalDate
LocalDate.fromDateFields
(Date date) Constructs a LocalDate from ajava.util.Date
using exactly the same field values.LocalDate.Property.getLocalDate()
Gets the LocalDate object linked to this property.LocalDate.minus
(ReadablePeriod period) Returns a copy of this date with the specified period taken away.LocalDate.minusDays
(int days) Returns a copy of this date minus the specified number of days.LocalDate.minusMonths
(int months) Returns a copy of this date minus the specified number of months.LocalDate.minusWeeks
(int weeks) Returns a copy of this date minus the specified number of weeks.LocalDate.minusYears
(int years) Returns a copy of this date minus the specified number of years.static LocalDate
LocalDate.now()
Obtains aLocalDate
set to the current system millisecond time usingISOChronology
in the default time zone.static LocalDate
LocalDate.now
(Chronology chronology) Obtains aLocalDate
set to the current system millisecond time using the specified chronology.static LocalDate
LocalDate.now
(DateTimeZone zone) Obtains aLocalDate
set to the current system millisecond time usingISOChronology
in the specified time zone.static LocalDate
Parses aLocalDate
from the specified string.static LocalDate
LocalDate.parse
(String str, DateTimeFormatter formatter) Parses aLocalDate
from the specified string using a formatter.LocalDate.plus
(ReadablePeriod period) Returns a copy of this date with the specified period added.LocalDate.plusDays
(int days) Returns a copy of this date plus the specified number of days.LocalDate.plusMonths
(int months) Returns a copy of this date plus the specified number of months.LocalDate.plusWeeks
(int weeks) Returns a copy of this date plus the specified number of weeks.LocalDate.plusYears
(int years) Returns a copy of this date plus the specified number of years.LocalDate.Property.roundCeilingCopy()
Rounds to the highest whole unit of this field on a copy of this LocalDate.LocalDate.Property.roundFloorCopy()
Rounds to the lowest whole unit of this field on a copy of this 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.Property.roundHalfEvenCopy()
Rounds to the nearest whole unit of this field on a copy of this 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.Property.setCopy
(int value) Sets this field in a copy of the LocalDate.Sets this field in a copy of the LocalDate to a parsed text value.Sets this field in a copy of the LocalDate to a parsed text value.DateMidnight.toLocalDate()
Deprecated.Converts this object to aLocalDate
with the same date and chronology.DateTime.toLocalDate()
Converts this object to aLocalDate
with the same date and chronology.LocalDateTime.toLocalDate()
Converts this object to a LocalDate with the same date and chronology.MonthDay.toLocalDate
(int year) Converts this object to a LocalDate with the same month-day and chronology.YearMonth.toLocalDate
(int dayOfMonth) Converts this object to a LocalDate with the same year-month and chronology.YearMonthDay.toLocalDate()
Deprecated.Converts this object to a LocalDate with the same date and chronology.LocalDate.withCenturyOfEra
(int centuryOfEra) Returns a copy of this date with the century of era field updated.LocalDate.withDayOfMonth
(int dayOfMonth) Returns a copy of this date with the day of month field updated.LocalDate.withDayOfWeek
(int dayOfWeek) Returns a copy of this date with the day of week field updated.LocalDate.withDayOfYear
(int dayOfYear) Returns a copy of this date with the day of year field updated.LocalDate.withEra
(int era) Returns a copy of this date with the era field updated.LocalDate.withField
(DateTimeFieldType fieldType, int value) Returns a copy of this date with the specified field set to a new value.LocalDate.withFieldAdded
(DurationFieldType fieldType, int amount) Returns a copy of this date with the value of the specified field increased.LocalDate.withFields
(ReadablePartial partial) Returns a copy of this date with the partial set of fields replacing those from this instance.LocalDate.Property.withMaximumValue()
Returns a new LocalDate with this field set to the maximum value for this field.LocalDate.Property.withMinimumValue()
Returns a new LocalDate with this field set to the minimum value for this field.LocalDate.withMonthOfYear
(int monthOfYear) Returns a copy of this date with the month of year field updated.LocalDate.withPeriodAdded
(ReadablePeriod period, int scalar) Returns a copy of this date with the specified period added.LocalDate.withWeekOfWeekyear
(int weekOfWeekyear) Returns a copy of this date with the week of weekyear field updated.LocalDate.withWeekyear
(int weekyear) Returns a copy of this date with the weekyear field updated.LocalDate.withYear
(int year) Returns a copy of this date with the year field updated.LocalDate.withYearOfCentury
(int yearOfCentury) Returns a copy of this date with the year of century field updated.LocalDate.withYearOfEra
(int yearOfEra) Returns a copy of this date with the year of era field updated.Methods in org.joda.time with parameters of type LocalDate -
Uses of LocalDate in org.joda.time.format
Methods in org.joda.time.format that return LocalDateModifier and TypeMethodDescriptionDateTimeFormatter.parseLocalDate
(String text) Parses only the local date from the given text, returning a new LocalDate.