Uses of Interface
org.threeten.bp.temporal.TemporalAmount
Packages that use TemporalAmount
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Access to date and time using fields and units.
-
Uses of TemporalAmount in org.threeten.bp
Classes in org.threeten.bp that implement TemporalAmountModifier and TypeClassDescriptionfinal classA time-based amount of time, such as '34.5 seconds'.final classA date-based amount of time, such as '2 years, 3 months and 4 days'.Methods in org.threeten.bp with parameters of type TemporalAmountModifier and TypeMethodDescriptionstatic DurationDuration.from(TemporalAmount amount) Obtains an instance ofDurationfrom an amount.static PeriodPeriod.from(TemporalAmount amount) Obtains an instance ofPeriodfrom a temporal amount.Instant.minus(TemporalAmount amount) Returns an object of the same type as this object with an amount subtracted.LocalDate.minus(TemporalAmount amount) Returns a copy of this date with the specified period subtracted.LocalDateTime.minus(TemporalAmount amount) Returns a copy of this date-time with the specified period subtracted.LocalTime.minus(TemporalAmount amount) Returns a copy of this time with the specified period subtracted.OffsetDateTime.minus(TemporalAmount amount) Returns a copy of this date-time with the specified period subtracted.OffsetTime.minus(TemporalAmount amount) Returns a copy of this time with the specified period subtracted.Period.minus(TemporalAmount amountToSubtract) Returns a copy of this period with the specified amount subtracted.Year.minus(TemporalAmount amount) Returns a copy of this year with the specified period subtracted.YearMonth.minus(TemporalAmount amount) Returns a copy of this year-month with the specified period subtracted.ZonedDateTime.minus(TemporalAmount amount) Returns a copy of this date-time with the specified period subtracted.Instant.plus(TemporalAmount amount) Returns an object of the same type as this object with an amount added.LocalDate.plus(TemporalAmount amount) Returns a copy of this date with the specified period added.LocalDateTime.plus(TemporalAmount amount) Returns a copy of this date-time with the specified period added.LocalTime.plus(TemporalAmount amount) Returns a copy of this date with the specified period added.OffsetDateTime.plus(TemporalAmount amount) Returns a copy of this date-time with the specified period added.OffsetTime.plus(TemporalAmount amount) Returns a copy of this date with the specified period added.Period.plus(TemporalAmount amountToAdd) Returns a copy of this period with the specified amount added.Year.plus(TemporalAmount amount) Returns a copy of this year with the specified period added.YearMonth.plus(TemporalAmount amount) Returns a copy of this year-month with the specified period added.ZonedDateTime.plus(TemporalAmount amount) Returns a copy of this date-time with the specified period added. -
Uses of TemporalAmount in org.threeten.bp.chrono
Classes in org.threeten.bp.chrono that implement TemporalAmountModifier and TypeClassDescriptionclassA date-based amount of time, such as '3 years, 4 months and 5 days' in an arbitrary chronology, intended for advanced globalization use cases.Methods in org.threeten.bp.chrono with parameters of type TemporalAmountModifier and TypeMethodDescriptionChronoLocalDate.minus(TemporalAmount amount) ChronoLocalDateTime.minus(TemporalAmount amount) abstract ChronoPeriodChronoPeriod.minus(TemporalAmount amountToSubtract) Returns a copy of this period with the specified period subtracted.ChronoZonedDateTime.minus(TemporalAmount amount) HijrahDate.minus(TemporalAmount amount) JapaneseDate.minus(TemporalAmount amount) MinguoDate.minus(TemporalAmount amount) ThaiBuddhistDate.minus(TemporalAmount amount) ChronoLocalDate.plus(TemporalAmount amount) ChronoLocalDateTime.plus(TemporalAmount amount) abstract ChronoPeriodChronoPeriod.plus(TemporalAmount amountToAdd) Returns a copy of this period with the specified period added.ChronoZonedDateTime.plus(TemporalAmount amount) HijrahDate.plus(TemporalAmount amount) JapaneseDate.plus(TemporalAmount amount) MinguoDate.plus(TemporalAmount amount) ThaiBuddhistDate.plus(TemporalAmount amount) -
Uses of TemporalAmount in org.threeten.bp.temporal
Methods in org.threeten.bp.temporal with parameters of type TemporalAmountModifier and TypeMethodDescriptiondefault TemporalTemporal.minus(TemporalAmount amount) Returns an object of the same type as this object with an amount subtracted.default TemporalTemporal.plus(TemporalAmount amount) Returns an object of the same type as this object with an amount added.