| Package | Description |
|---|---|
| org.threeten.bp |
The main API for dates, times, instants, and durations.
|
| Modifier and Type | Field and Description |
|---|---|
static OffsetDate |
OffsetDate.MAX
The maximum supported
OffsetDate, '+999999999-12-31-18:00'. |
static OffsetDate |
OffsetDate.MIN
The minimum supported
OffsetDate, '-999999999-01-01+18:00'. |
| Modifier and Type | Method and Description |
|---|---|
OffsetDate |
LocalDate.atOffset(ZoneOffset offset)
Returns an offset date formed from this date and the specified offset.
|
static OffsetDate |
OffsetDate.from(TemporalAccessor temporal)
Obtains an instance of
OffsetDate from a temporal object. |
OffsetDate |
OffsetDate.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date with the specified period subtracted.
|
OffsetDate |
OffsetDate.minus(TemporalSubtractor subtractor)
Returns a copy of this date with the specified period subtracted.
|
OffsetDate |
OffsetDate.minusDays(long days)
Returns a copy of this
OffsetDate with the specified number of days subtracted. |
OffsetDate |
OffsetDate.minusMonths(long months)
Returns a copy of this
OffsetDate with the specified period in months subtracted. |
OffsetDate |
OffsetDate.minusWeeks(long weeks)
Returns a copy of this
OffsetDate with the specified period in weeks subtracted. |
OffsetDate |
OffsetDate.minusYears(long years)
Returns a copy of this
OffsetDate with the specified period in years subtracted. |
static OffsetDate |
OffsetDate.now()
Obtains the current date from the system clock in the default time-zone.
|
static OffsetDate |
OffsetDate.now(Clock clock)
Obtains the current date from the specified clock.
|
static OffsetDate |
OffsetDate.now(ZoneId zone)
Obtains the current date from the system clock in the specified time-zone.
|
static OffsetDate |
OffsetDate.of(LocalDate date,
ZoneOffset offset)
Obtains an instance of
OffsetDate from a local date and an offset. |
static OffsetDate |
OffsetDate.ofInstant(Instant instant,
ZoneId zone)
Obtains an instance of
OffsetDate from an Instant and zone ID. |
static OffsetDate |
OffsetDate.parse(CharSequence text)
Obtains an instance of
OffsetDate from a text string such as 2007-12-03+01:00. |
static OffsetDate |
OffsetDate.parse(CharSequence text,
DateTimeFormatter formatter)
Obtains an instance of
OffsetDate from a text string using a specific formatter. |
OffsetDate |
OffsetDate.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date with the specified period added.
|
OffsetDate |
OffsetDate.plus(TemporalAdder adder)
Returns a copy of this date with the specified period added.
|
OffsetDate |
OffsetDate.plusDays(long days)
Returns a copy of this
OffsetDate with the specified period in days added. |
OffsetDate |
OffsetDate.plusMonths(long months)
Returns a copy of this
OffsetDate with the specified period in months added. |
OffsetDate |
OffsetDate.plusWeeks(long weeks)
Returns a copy of this
OffsetDate with the specified period in weeks added. |
OffsetDate |
OffsetDate.plusYears(long years)
Returns a copy of this
OffsetDate with the specified period in years added. |
OffsetDate |
OffsetDateTime.toOffsetDate()
Converts this date-time to an
OffsetDate. |
OffsetDate |
OffsetDate.with(TemporalAdjuster adjuster)
Returns an adjusted copy of this date.
|
OffsetDate |
OffsetDate.with(TemporalField field,
long newValue)
Returns a copy of this date with the specified field set to a new value.
|
OffsetDate |
OffsetDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this
OffsetDate with the day-of-month altered. |
OffsetDate |
OffsetDate.withDayOfYear(int dayOfYear)
Returns a copy of this
OffsetDate with the day-of-year altered. |
OffsetDate |
OffsetDate.withMonth(int month)
Returns a copy of this
OffsetDate with the month-of-year altered. |
OffsetDate |
OffsetDate.withOffset(ZoneOffset offset)
Returns a copy of this
OffsetDate with the specified offset. |
OffsetDate |
OffsetDate.withYear(int year)
Returns a copy of this
OffsetDate with the year altered. |
| Modifier and Type | Method and Description |
|---|---|
int |
OffsetDate.compareTo(OffsetDate other)
Compares this
OffsetDate to another date. |
boolean |
OffsetDate.isAfter(OffsetDate other)
Checks if the instant of midnight at the start of this
OffsetDate
is after midnight at the start of the specified date. |
boolean |
OffsetDate.isBefore(OffsetDate other)
Checks if the instant of midnight at the start of this
OffsetDate
is before midnight at the start of the specified date. |
boolean |
OffsetDate.isEqual(OffsetDate other)
Checks if the instant of midnight at the start of this
OffsetDate
equals midnight at the start of the specified date. |
Copyright © 2007-2013 ThreeTen.org. All Rights Reserved.