Package | Description |
---|---|
org.joda.time |
Provides support for dates, times, time zones, durations, intervals, and
partials.
|
Modifier and Type | Method and Description |
---|---|
DateMidnight |
DateMidnight.Property.addToCopy(int value)
Adds to this field in a copy of this DateMidnight.
|
DateMidnight |
DateMidnight.Property.addToCopy(long value)
Adds to this field in a copy of this DateMidnight.
|
DateMidnight |
DateMidnight.Property.addWrapFieldToCopy(int value)
Adds to this field, possibly wrapped, in a copy of this DateMidnight.
|
DateMidnight |
DateMidnight.Property.getDateMidnight()
Gets the datetime being used.
|
DateMidnight |
DateMidnight.minus(long duration)
Deprecated.
Returns a copy of this date with the specified duration taken away.
|
DateMidnight |
DateMidnight.minus(ReadableDuration duration)
Deprecated.
Returns a copy of this date with the specified duration taken away.
|
DateMidnight |
DateMidnight.minus(ReadablePeriod period)
Deprecated.
Returns a copy of this date with the specified period taken away.
|
DateMidnight |
DateMidnight.minusDays(int days)
Deprecated.
Returns a copy of this date minus the specified number of days.
|
DateMidnight |
DateMidnight.minusMonths(int months)
Deprecated.
Returns a copy of this date minus the specified number of months.
|
DateMidnight |
DateMidnight.minusWeeks(int weeks)
Deprecated.
Returns a copy of this date minus the specified number of weeks.
|
DateMidnight |
DateMidnight.minusYears(int years)
Deprecated.
Returns a copy of this date minus the specified number of years.
|
static DateMidnight |
DateMidnight.now()
Deprecated.
Obtains a
DateMidnight set to the current system millisecond time
using ISOChronology in the default time zone. |
static DateMidnight |
DateMidnight.now(Chronology chronology)
Deprecated.
Obtains a
DateMidnight set to the current system millisecond time
using the specified chronology. |
static DateMidnight |
DateMidnight.now(DateTimeZone zone)
Deprecated.
Obtains a
DateMidnight set to the current system millisecond time
using ISOChronology in the specified time zone. |
static DateMidnight |
DateMidnight.parse(String str)
Deprecated.
Parses a
DateMidnight from the specified string. |
static DateMidnight |
DateMidnight.parse(String str,
DateTimeFormatter formatter)
Deprecated.
Parses a
DateMidnight from the specified string using a formatter. |
DateMidnight |
DateMidnight.plus(long duration)
Deprecated.
Returns a copy of this date with the specified duration added.
|
DateMidnight |
DateMidnight.plus(ReadableDuration duration)
Deprecated.
Returns a copy of this date with the specified duration added.
|
DateMidnight |
DateMidnight.plus(ReadablePeriod period)
Deprecated.
Returns a copy of this date with the specified period added.
|
DateMidnight |
DateMidnight.plusDays(int days)
Deprecated.
Returns a copy of this date plus the specified number of days.
|
DateMidnight |
DateMidnight.plusMonths(int months)
Deprecated.
Returns a copy of this date plus the specified number of months.
|
DateMidnight |
DateMidnight.plusWeeks(int weeks)
Deprecated.
Returns a copy of this date plus the specified number of weeks.
|
DateMidnight |
DateMidnight.plusYears(int years)
Deprecated.
Returns a copy of this date plus the specified number of years.
|
DateMidnight |
DateMidnight.Property.roundCeilingCopy()
Rounds to the highest whole unit of this field on a copy of this DateMidnight.
|
DateMidnight |
DateMidnight.Property.roundFloorCopy()
Rounds to the lowest whole unit of this field on a copy of this DateMidnight.
|
DateMidnight |
DateMidnight.Property.roundHalfCeilingCopy()
Rounds to the nearest whole unit of this field on a copy of this DateMidnight,
favoring the ceiling if halfway.
|
DateMidnight |
DateMidnight.Property.roundHalfEvenCopy()
Rounds to the nearest whole unit of this field on a copy of this DateMidnight.
|
DateMidnight |
DateMidnight.Property.roundHalfFloorCopy()
Rounds to the nearest whole unit of this field on a copy of this DateMidnight,
favoring the floor if halfway.
|
DateMidnight |
DateMidnight.Property.setCopy(int value)
Sets this field in a copy of the DateMidnight.
|
DateMidnight |
DateMidnight.Property.setCopy(String text)
Sets this field in a copy of the DateMidnight to a parsed text value.
|
DateMidnight |
DateMidnight.Property.setCopy(String text,
Locale locale)
Sets this field in a copy of the DateMidnight to a parsed text value.
|
DateMidnight |
DateTime.toDateMidnight()
Deprecated.
DateMidnight is deprecated
|
DateMidnight |
YearMonthDay.toDateMidnight()
Deprecated.
Converts this object to a DateMidnight in the default time zone.
|
DateMidnight |
LocalDate.toDateMidnight()
Deprecated.
DateMidnight is deprecated
|
DateMidnight |
YearMonthDay.toDateMidnight(DateTimeZone zone)
Deprecated.
Converts this object to a DateMidnight.
|
DateMidnight |
LocalDate.toDateMidnight(DateTimeZone zone)
Deprecated.
DateMidnight is deprecated
|
DateMidnight |
DateMidnight.withCenturyOfEra(int centuryOfEra)
Deprecated.
Returns a copy of this date with the century of era field updated.
|
DateMidnight |
DateMidnight.withChronology(Chronology newChronology)
Deprecated.
Returns a copy of this date with a different chronology, potentially
changing the day in unexpected ways.
|
DateMidnight |
DateMidnight.withDayOfMonth(int dayOfMonth)
Deprecated.
Returns a copy of this date with the day of month field updated.
|
DateMidnight |
DateMidnight.withDayOfWeek(int dayOfWeek)
Deprecated.
Returns a copy of this date with the day of week field updated.
|
DateMidnight |
DateMidnight.withDayOfYear(int dayOfYear)
Deprecated.
Returns a copy of this date with the day of year field updated.
|
DateMidnight |
DateMidnight.withDurationAdded(long durationToAdd,
int scalar)
Deprecated.
Returns a copy of this date with the specified duration added.
|
DateMidnight |
DateMidnight.withDurationAdded(ReadableDuration durationToAdd,
int scalar)
Deprecated.
Returns a copy of this date with the specified duration added.
|
DateMidnight |
DateMidnight.withEra(int era)
Deprecated.
Returns a copy of this date with the era field updated.
|
DateMidnight |
DateMidnight.withField(DateTimeFieldType fieldType,
int value)
Deprecated.
Returns a copy of this date with the specified field set to a new value.
|
DateMidnight |
DateMidnight.withFieldAdded(DurationFieldType fieldType,
int amount)
Deprecated.
Returns a copy of this date with the value of the specified field increased.
|
DateMidnight |
DateMidnight.withFields(ReadablePartial partial)
Deprecated.
Returns a copy of this date with the partial set of fields replacing those
from this instance.
|
DateMidnight |
DateMidnight.Property.withMaximumValue()
Returns a new DateMidnight with this field set to the maximum value
for this field.
|
DateMidnight |
DateMidnight.withMillis(long newMillis)
Deprecated.
Returns a copy of this date with a different millisecond instant.
|
DateMidnight |
DateMidnight.Property.withMinimumValue()
Returns a new DateMidnight with this field set to the minimum value
for this field.
|
DateMidnight |
DateMidnight.withMonthOfYear(int monthOfYear)
Deprecated.
Returns a copy of this date with the month of year field updated.
|
DateMidnight |
DateMidnight.withPeriodAdded(ReadablePeriod period,
int scalar)
Deprecated.
Returns a copy of this date with the specified period added.
|
DateMidnight |
DateMidnight.withWeekOfWeekyear(int weekOfWeekyear)
Deprecated.
Returns a copy of this date with the week of weekyear field updated.
|
DateMidnight |
DateMidnight.withWeekyear(int weekyear)
Deprecated.
Returns a copy of this date with the weekyear field updated.
|
DateMidnight |
DateMidnight.withYear(int year)
Deprecated.
Returns a copy of this date with the year field updated.
|
DateMidnight |
DateMidnight.withYearOfCentury(int yearOfCentury)
Deprecated.
Returns a copy of this date with the year of century field updated.
|
DateMidnight |
DateMidnight.withYearOfEra(int yearOfEra)
Deprecated.
Returns a copy of this date with the year of era field updated.
|
DateMidnight |
DateMidnight.withZoneRetainFields(DateTimeZone newZone)
Deprecated.
Returns a copy of this date with a different time zone, preserving the day
The returned object will have a local time of midnight in the new zone on
the same day as the original instant.
|
Copyright © 2002–2025 Joda.org. All rights reserved.