Uses of Interface
org.threeten.bp.temporal.Temporal
Packages that use Temporal
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Simulates JDK 8 features on JDK 7.
Access to date and time using fields and units.
-
Uses of Temporal in org.threeten.bp
Classes in org.threeten.bp that implement TemporalModifier and TypeClassDescriptionfinal classAn instantaneous point on the time-line.final classA date without a time-zone in the ISO-8601 calendar system, such as2007-12-23.final classA date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-23T10:15:30.final classA time without time-zone in the ISO-8601 calendar system, such as10:15:30.final classA date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as2007-12-23T10:15:30+01:00.final classA time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as10:15:30+01:00.final classA year in the ISO-8601 calendar system, such as2007.final classA year-month in the ISO-8601 calendar system, such as2007-12.final classA date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-23T10:15:30+01:00 Europe/Paris.Methods in org.threeten.bp that return TemporalModifier and TypeMethodDescriptionAdds this duration to the specified temporal object.Adds this period to the specified temporal object.DayOfWeek.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this day-of-week.Instant.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this instant.LocalDate.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same date as this object.LocalDateTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same date and time as this object.LocalTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same time as this object.Month.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this month-of-year.MonthDay.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this month-day.OffsetDateTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset, date and time as this object.OffsetTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset and time as this object.Year.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this year.YearMonth.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this year-month.ZoneOffset.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset as this object.Duration.subtractFrom(Temporal temporal) Subtracts this duration from the specified temporal object.Period.subtractFrom(Temporal temporal) Subtracts this period from the specified temporal object.Methods in org.threeten.bp with parameters of type TemporalModifier and TypeMethodDescriptionAdds this duration to the specified temporal object.Adds this period to the specified temporal object.DayOfWeek.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this day-of-week.Instant.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this instant.LocalDate.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same date as this object.LocalDateTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same date and time as this object.LocalTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same time as this object.Month.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this month-of-year.MonthDay.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this month-day.OffsetDateTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset, date and time as this object.OffsetTime.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset and time as this object.Year.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this year.YearMonth.adjustInto(Temporal temporal) Adjusts the specified temporal object to have this year-month.ZoneOffset.adjustInto(Temporal temporal) Adjusts the specified temporal object to have the same offset as this object.static DurationObtains an instance ofDurationrepresenting the duration between two instants.Duration.subtractFrom(Temporal temporal) Subtracts this duration from the specified temporal object.Period.subtractFrom(Temporal temporal) Subtracts this period from the specified temporal object.longInstant.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this instant and another instant in terms of the specified unit.longLocalDate.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this date and another date in terms of the specified unit.longLocalDateTime.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this date-time and another date-time in terms of the specified unit.longLocalTime.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this time and another time in terms of the specified unit.longOffsetDateTime.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this date-time and another date-time in terms of the specified unit.longOffsetTime.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this time and another time in terms of the specified unit.longYear.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this year and another year in terms of the specified unit.longYearMonth.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this year-month and another year-month in terms of the specified unit.longZonedDateTime.until(Temporal endExclusive, TemporalUnit unit) Calculates the period between this date-time and another date-time in terms of the specified unit. -
Uses of Temporal in org.threeten.bp.chrono
Classes in org.threeten.bp.chrono that implement TemporalModifier and TypeClassDescription(package private) classChronoDateImpl<D extends ChronoLocalDate>A date expressed in terms of a standard year-month-day calendar system.classA date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases.classChronoLocalDateTime<D extends ChronoLocalDate>A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases.(package private) final classChronoLocalDateTimeImpl<D extends ChronoLocalDate>A date-time without a time-zone for the calendar neutral API.classChronoZonedDateTime<D extends ChronoLocalDate>A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.(package private) final classChronoZonedDateTimeImpl<D extends ChronoLocalDate>A date-time with a time-zone in the calendar neutral API.final classA date in the Hijrah calendar system.final classA date in the Japanese Imperial calendar system.final classA date in the Minguo calendar system.final classA date in the Thai Buddhist calendar system.Methods in org.threeten.bp.chrono that return TemporalModifier and TypeMethodDescriptionabstract TemporalAdds this period to the specified temporal object.ChronoLocalDate.adjustInto(Temporal temporal) ChronoLocalDateTime.adjustInto(Temporal temporal) HijrahEra.adjustInto(Temporal temporal) IsoEra.adjustInto(Temporal temporal) MinguoEra.adjustInto(Temporal temporal) ThaiBuddhistEra.adjustInto(Temporal temporal) abstract TemporalChronoPeriod.subtractFrom(Temporal temporal) Subtracts this period from the specified temporal object.ChronoPeriodImpl.subtractFrom(Temporal temporal) Methods in org.threeten.bp.chrono with parameters of type TemporalModifier and TypeMethodDescriptionabstract TemporalAdds this period to the specified temporal object.ChronoLocalDate.adjustInto(Temporal temporal) ChronoLocalDateTime.adjustInto(Temporal temporal) HijrahEra.adjustInto(Temporal temporal) IsoEra.adjustInto(Temporal temporal) MinguoEra.adjustInto(Temporal temporal) ThaiBuddhistEra.adjustInto(Temporal temporal) (package private) <D extends ChronoLocalDate>
DChronology.ensureChronoLocalDate(Temporal temporal) Casts theTemporaltoChronoLocalDatewith the same chronology.(package private) <D extends ChronoLocalDate>
ChronoLocalDateTimeImpl<D>Chronology.ensureChronoLocalDateTime(Temporal temporal) Casts theTemporaltoChronoLocalDateTimewith the same chronology.(package private) <D extends ChronoLocalDate>
ChronoZonedDateTimeImpl<D>Chronology.ensureChronoZonedDateTime(Temporal temporal) Casts theTemporaltoChronoZonedDateTimeImplwith the same chronology.abstract TemporalChronoPeriod.subtractFrom(Temporal temporal) Subtracts this period from the specified temporal object.ChronoPeriodImpl.subtractFrom(Temporal temporal) longChronoDateImpl.until(Temporal endExclusive, TemporalUnit unit) longChronoLocalDateTimeImpl.until(Temporal endExclusive, TemporalUnit unit) longChronoZonedDateTimeImpl.until(Temporal endExclusive, TemporalUnit unit) private ChronoLocalDateTimeImpl<D>Returns a copy of this date-time with the new date and time, checking to see if a new object is in fact required. -
Uses of Temporal in org.threeten.bp.jdk8
Classes in org.threeten.bp.jdk8 that implement TemporalModifier and TypeClassDescriptionclassA temporary class providing implementations that will become default interface methods once integrated into JDK 8.Methods in org.threeten.bp.jdk8 that return TemporalModifier and TypeMethodDescriptionDefaultInterfaceEra.adjustInto(Temporal temporal) DefaultInterfaceTemporal.minus(long amountToSubtract, TemporalUnit unit) DefaultInterfaceTemporal.minus(TemporalAmount amount) DefaultInterfaceTemporal.plus(TemporalAmount amount) DefaultInterfaceTemporal.with(TemporalAdjuster adjuster) Methods in org.threeten.bp.jdk8 with parameters of type Temporal -
Uses of Temporal in org.threeten.bp.temporal
Methods in org.threeten.bp.temporal with type parameters of type TemporalModifier and TypeMethodDescription<R extends Temporal>
RChronoUnit.addTo(R dateTime, long periodToAdd) <R extends Temporal>
RIsoFields.Unit.addTo(R temporal, long periodToAdd) <R extends Temporal>
RTemporalUnit.addTo(R dateTime, long periodToAdd) Returns a copy of the specified temporal object with the specified period added.<R extends Temporal>
RChronoField.adjustInto(R temporal, long newValue) <R extends Temporal>
RJulianFields.Field.adjustInto(R dateTime, long newValue) <R extends Temporal>
RTemporalField.adjustInto(R temporal, long newValue) Returns a copy of the specified temporal object with the value of this field set.<R extends Temporal>
RWeekFields.ComputedDayOfField.adjustInto(R temporal, long newValue) Methods in org.threeten.bp.temporal that return TemporalModifier and TypeMethodDescriptionAdds to the specified temporal object.TemporalAdjuster.adjustInto(Temporal temporal) Adjusts the specified temporal object.TemporalAdjusters.DayOfWeekInMonth.adjustInto(Temporal temporal) TemporalAdjusters.Impl.adjustInto(Temporal temporal) TemporalAdjusters.RelativeDayOfWeek.adjustInto(Temporal temporal) Temporal.minus(long amountToSubtract, TemporalUnit unit) Returns an object of the same type as this object with the specified period subtracted.Temporal.minus(TemporalAmount amount) Returns an object of the same type as this object with an amount subtracted.Temporal.plus(long amountToAdd, TemporalUnit unit) Returns an object of the same type as this object with the specified period added.Temporal.plus(TemporalAmount amount) Returns an object of the same type as this object with an amount added.TemporalAmount.subtractFrom(Temporal temporal) Subtracts this object from the specified temporal object.Temporal.with(TemporalAdjuster adjuster) Returns an adjusted object of the same type as this object with the adjustment made.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 TemporalModifier and TypeMethodDescriptionAdds to the specified temporal object.TemporalAdjuster.adjustInto(Temporal temporal) Adjusts the specified temporal object.TemporalAdjusters.DayOfWeekInMonth.adjustInto(Temporal temporal) TemporalAdjusters.Impl.adjustInto(Temporal temporal) TemporalAdjusters.RelativeDayOfWeek.adjustInto(Temporal temporal) longlonglongCalculates the period in terms of this unit between two temporal objects of the same type.booleanChronoUnit.isSupportedBy(Temporal temporal) booleanIsoFields.Unit.isSupportedBy(Temporal temporal) booleanTemporalUnit.isSupportedBy(Temporal temporal) Checks if this unit is supported by the specified temporal object.TemporalAmount.subtractFrom(Temporal temporal) Subtracts this object from the specified temporal object.longTemporal.until(Temporal endTemporal, TemporalUnit unit) Calculates the period between this temporal and another temporal in terms of the specified unit.