Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Method and Description |
---|---|
OffsetDate |
LocalDate.atOffset(ZoneOffset offset)
Returns an offset date formed from this time and the specified offset.
|
OffsetDate |
OffsetDate.minus(PeriodProvider periodProvider)
Returns a copy of this
OffsetDate with the specified date 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.minusMonths(long months,
DateResolver dateResolver)
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. |
OffsetDate |
OffsetDate.minusYears(long years,
DateResolver dateResolver)
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.of(DateProvider dateProvider,
ZoneOffset offset)
Obtains an instance of
OffsetDate from a date provider. |
static OffsetDate |
OffsetDate.of(int year,
int monthOfYear,
int dayOfMonth,
ZoneOffset offset)
Obtains an instance of
OffsetDate from a year, month and day. |
static OffsetDate |
OffsetDate.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
ZoneOffset offset)
Obtains an instance of
OffsetDate from a year, month and day. |
OffsetDate |
Clock.offsetDate()
Gets the current offset date.
|
static OffsetDate |
OffsetDate.ofInstant(InstantProvider instantProvider,
ZoneOffset offset)
Obtains an instance of
OffsetDate from an InstantProvider . |
static OffsetDate |
OffsetDate.parse(String text)
Obtains an instance of
OffsetDate from a text string such as 2007-12-03+01:00 . |
static OffsetDate |
OffsetDate.parse(String text,
DateTimeFormatter formatter)
Obtains an instance of
OffsetDate from a text string using a specific formatter. |
OffsetDate |
OffsetDate.plus(PeriodProvider periodProvider)
Returns a copy of this
OffsetDate with the specified date 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.plusMonths(long months,
DateResolver dateResolver)
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 |
OffsetDate.plusYears(long years,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the specified period in years added. |
OffsetDate |
ZonedDateTime.toOffsetDate()
Converts this
ZonedDateTime to a OffsetDate . |
OffsetDate |
OffsetDateTime.toOffsetDate()
Converts this date-time to an
OffsetDate . |
OffsetDate |
OffsetDate.with(DateAdjuster adjuster)
Returns a copy of this
OffsetDate with the date altered using the adjuster. |
OffsetDate |
OffsetDate.with(MonthOfYear monthOfYear)
Returns a copy of this
OffsetDate with the month-of-year altered. |
OffsetDate |
OffsetDate.with(MonthOfYear monthOfYear,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the month-of-year altered. |
OffsetDate |
OffsetDate.withDate(DateProvider dateProvider)
Returns a copy of this
OffsetDate with a different local date. |
OffsetDate |
OffsetDate.withDayOfMonth(int dayOfMonth)
Returns a copy of this
OffsetDate with the day-of-month altered. |
OffsetDate |
OffsetDate.withDayOfMonth(int dayOfMonth,
DateResolver dateResolver)
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.withMonthOfYear(int monthOfYear)
Returns a copy of this
OffsetDate with the month-of-year altered. |
OffsetDate |
OffsetDate.withMonthOfYear(int monthOfYear,
DateResolver dateResolver)
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. |
OffsetDate |
OffsetDate.withYear(int year,
DateResolver dateResolver)
Returns a copy of this
OffsetDate with the year altered. |
Modifier and Type | Method and Description |
---|---|
static CalendricalRule<OffsetDate> |
OffsetDate.rule()
Gets the rule for
OffsetDate . |
Modifier and Type | Method and Description |
---|---|
int |
OffsetDate.compareTo(OffsetDate other)
Compares this
OffsetDate to another date based on the UTC equivalent
dates then local date. |
boolean |
OffsetDate.equalInstant(OffsetDate other)
Checks if the instant of midnight at the start of this
OffsetDate
equals midnight at the start of the specified 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. |
Copyright © 2014. All rights reserved.