|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Temporal | |
|---|---|
| org.threeten.bp | The main API for dates, times, instants, and durations. |
| org.threeten.bp.chrono | Support for calendar systems other than the default ISO. |
| org.threeten.bp.jdk8 | Simulates JDK 8 features on JDK 7. |
| org.threeten.bp.temporal | Access to date and time using fields and units. |
| Uses of Temporal in org.threeten.bp |
|---|
| Classes in org.threeten.bp that implement Temporal | |
|---|---|
class |
Instant
An instantaneous point on the time-line. |
class |
LocalDate
A date without a time-zone in the ISO-8601 calendar system, such as 2007-12-03. |
class |
LocalDateTime
A date-time without a time-zone in the ISO-8601 calendar system, such as 2007-12-03T10:15:30. |
class |
LocalTime
A time without time-zone in the ISO-8601 calendar system, such as 10:15:30. |
class |
OffsetDateTime
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 2007-12-03T10:15:30+01:00. |
class |
OffsetTime
A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as 10:15:30+01:00. |
class |
Year
A year in the ISO-8601 calendar system, such as 2007. |
class |
YearMonth
A year-month in the ISO-8601 calendar system, such as 2007-12. |
class |
ZonedDateTime
A date-time with a time-zone in the ISO-8601 calendar system, such as 2007-12-03T10:15:30+01:00 Europe/Paris. |
| Methods in org.threeten.bp that return Temporal | |
|---|---|
Temporal |
Period.addTo(Temporal temporal)
Adds this period to the specified temporal object. |
Temporal |
Duration.addTo(Temporal temporal)
Adds this duration to the specified temporal object. |
Temporal |
ZoneOffset.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset as this object. |
Temporal |
YearMonth.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this year-month. |
Temporal |
Year.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this year. |
Temporal |
OffsetTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset and time as this object. |
Temporal |
OffsetDateTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset, date and time as this object. |
Temporal |
MonthDay.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this month-day. |
Temporal |
Month.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this month-of-year. |
Temporal |
LocalTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same time as this object. |
Temporal |
LocalDateTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same date and time as this object. |
Temporal |
LocalDate.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same date as this object. |
Temporal |
Instant.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this instant. |
Temporal |
DayOfWeek.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this day-of-week. |
Temporal |
Period.subtractFrom(Temporal temporal)
Subtracts this period from the specified temporal object. |
Temporal |
Duration.subtractFrom(Temporal temporal)
Subtracts this duration from the specified temporal object. |
| Methods in org.threeten.bp with parameters of type Temporal | |
|---|---|
Temporal |
Period.addTo(Temporal temporal)
Adds this period to the specified temporal object. |
Temporal |
Duration.addTo(Temporal temporal)
Adds this duration to the specified temporal object. |
Temporal |
ZoneOffset.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset as this object. |
Temporal |
YearMonth.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this year-month. |
Temporal |
Year.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this year. |
Temporal |
OffsetTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset and time as this object. |
Temporal |
OffsetDateTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same offset, date and time as this object. |
Temporal |
MonthDay.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this month-day. |
Temporal |
Month.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this month-of-year. |
Temporal |
LocalTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same time as this object. |
Temporal |
LocalDateTime.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same date and time as this object. |
Temporal |
LocalDate.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have the same date as this object. |
Temporal |
Instant.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this instant. |
Temporal |
DayOfWeek.adjustInto(Temporal temporal)
Adjusts the specified temporal object to have this day-of-week. |
static Duration |
Duration.between(Temporal startInclusive,
Temporal endExclusive)
Obtains an instance of Duration representing the duration between two instants. |
Temporal |
Period.subtractFrom(Temporal temporal)
Subtracts this period from the specified temporal object. |
Temporal |
Duration.subtractFrom(Temporal temporal)
Subtracts this duration from the specified temporal object. |
long |
ZonedDateTime.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this date-time and another date-time in terms of the specified unit. |
long |
YearMonth.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this year-month and another year-month in terms of the specified unit. |
long |
Year.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this year and another year in terms of the specified unit. |
long |
OffsetTime.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this time and another time in terms of the specified unit. |
long |
OffsetDateTime.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this date-time and another date-time in terms of the specified unit. |
long |
LocalTime.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this time and another time in terms of the specified unit. |
long |
LocalDateTime.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this date-time and another date-time in terms of the specified unit. |
long |
LocalDate.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this date and another date in terms of the specified unit. |
long |
Instant.until(Temporal endExclusive,
TemporalUnit unit)
Calculates the period between this instant and another instant in terms of the specified unit. |
| Uses of Temporal in org.threeten.bp.chrono |
|---|
| Classes in org.threeten.bp.chrono that implement Temporal | |
|---|---|
class |
ChronoLocalDate
A date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases. |
class |
ChronoLocalDateTime<D extends ChronoLocalDate>
A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases. |
class |
ChronoZonedDateTime<D extends ChronoLocalDate>
A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases. |
class |
HijrahDate
A date in the Hijrah calendar system. |
class |
JapaneseDate
A date in the Japanese Imperial calendar system. |
class |
MinguoDate
A date in the Minguo calendar system. |
class |
ThaiBuddhistDate
A date in the Thai Buddhist calendar system. |
| Methods in org.threeten.bp.chrono that return Temporal | |
|---|---|
abstract Temporal |
ChronoPeriod.addTo(Temporal temporal)
Adds this period to the specified temporal object. |
Temporal |
ThaiBuddhistEra.adjustInto(Temporal temporal)
|
Temporal |
MinguoEra.adjustInto(Temporal temporal)
|
Temporal |
IsoEra.adjustInto(Temporal temporal)
|
Temporal |
HijrahEra.adjustInto(Temporal temporal)
|
Temporal |
ChronoLocalDateTime.adjustInto(Temporal temporal)
|
Temporal |
ChronoLocalDate.adjustInto(Temporal temporal)
|
abstract Temporal |
ChronoPeriod.subtractFrom(Temporal temporal)
Subtracts this period from the specified temporal object. |
| Methods in org.threeten.bp.chrono with parameters of type Temporal | |
|---|---|
abstract Temporal |
ChronoPeriod.addTo(Temporal temporal)
Adds this period to the specified temporal object. |
Temporal |
ThaiBuddhistEra.adjustInto(Temporal temporal)
|
Temporal |
MinguoEra.adjustInto(Temporal temporal)
|
Temporal |
IsoEra.adjustInto(Temporal temporal)
|
Temporal |
HijrahEra.adjustInto(Temporal temporal)
|
Temporal |
ChronoLocalDateTime.adjustInto(Temporal temporal)
|
Temporal |
ChronoLocalDate.adjustInto(Temporal temporal)
|
abstract Temporal |
ChronoPeriod.subtractFrom(Temporal temporal)
Subtracts this period from the specified temporal object. |
| Uses of Temporal in org.threeten.bp.jdk8 |
|---|
| Classes in org.threeten.bp.jdk8 that implement Temporal | |
|---|---|
class |
DefaultInterfaceTemporal
A temporary class providing implementations that will become default interface methods once integrated into JDK 8. |
| Methods in org.threeten.bp.jdk8 that return Temporal | |
|---|---|
Temporal |
DefaultInterfaceEra.adjustInto(Temporal temporal)
|
Temporal |
DefaultInterfaceTemporal.minus(long amountToSubtract,
TemporalUnit unit)
|
Temporal |
DefaultInterfaceTemporal.minus(TemporalAmount amount)
|
Temporal |
DefaultInterfaceTemporal.plus(TemporalAmount amount)
|
Temporal |
DefaultInterfaceTemporal.with(TemporalAdjuster adjuster)
|
| Methods in org.threeten.bp.jdk8 with parameters of type Temporal | |
|---|---|
Temporal |
DefaultInterfaceEra.adjustInto(Temporal temporal)
|
| Uses of Temporal in org.threeten.bp.temporal |
|---|
| Methods in org.threeten.bp.temporal with type parameters of type Temporal | ||
|---|---|---|
|
TemporalUnit.addTo(R dateTime,
long periodToAdd)
Returns a copy of the specified temporal object with the specified period added. |
|
|
ChronoUnit.addTo(R dateTime,
long periodToAdd)
|
|
|
TemporalField.adjustInto(R temporal,
long newValue)
Returns a copy of the specified temporal object with the value of this field set. |
|
|
ChronoField.adjustInto(R temporal,
long newValue)
|
|
| Methods in org.threeten.bp.temporal that return Temporal | |
|---|---|
Temporal |
TemporalAmount.addTo(Temporal temporal)
Adds to the specified temporal object. |
Temporal |
TemporalAdjuster.adjustInto(Temporal temporal)
Adjusts the specified temporal object. |
Temporal |
Temporal.minus(long amountToSubtract,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted. |
Temporal |
Temporal.minus(TemporalAmount amount)
Returns an object of the same type as this object with an amount subtracted. |
Temporal |
Temporal.plus(long amountToAdd,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period added. |
Temporal |
Temporal.plus(TemporalAmount amount)
Returns an object of the same type as this object with an amount added. |
Temporal |
TemporalAmount.subtractFrom(Temporal temporal)
Subtracts this object from the specified temporal object. |
Temporal |
Temporal.with(TemporalAdjuster adjuster)
Returns an adjusted object of the same type as this object with the adjustment made. |
Temporal |
Temporal.with(TemporalField field,
long newValue)
Returns an object of the same type as this object with the specified field altered. |
| Methods in org.threeten.bp.temporal with parameters of type Temporal | |
|---|---|
Temporal |
TemporalAmount.addTo(Temporal temporal)
Adds to the specified temporal object. |
Temporal |
TemporalAdjuster.adjustInto(Temporal temporal)
Adjusts the specified temporal object. |
long |
TemporalUnit.between(Temporal temporal1,
Temporal temporal2)
Calculates the period in terms of this unit between two temporal objects of the same type. |
long |
ChronoUnit.between(Temporal temporal1,
Temporal temporal2)
|
boolean |
TemporalUnit.isSupportedBy(Temporal temporal)
Checks if this unit is supported by the specified temporal object. |
boolean |
ChronoUnit.isSupportedBy(Temporal temporal)
|
Temporal |
TemporalAmount.subtractFrom(Temporal temporal)
Subtracts this object from the specified temporal object. |
long |
Temporal.until(Temporal endTemporal,
TemporalUnit unit)
Calculates the period between this temporal and another temporal in terms of the specified unit. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||