Uses of Interface
org.threeten.bp.temporal.TemporalAmount
-
Packages that use TemporalAmount Package Description 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 TemporalAmount in org.threeten.bp
Classes in org.threeten.bp that implement TemporalAmount Modifier and Type Class Description class
Duration
A time-based amount of time, such as '34.5 seconds'.class
Period
A date-based amount of time, such as '2 years, 3 months and 4 days'.Methods in org.threeten.bp with parameters of type TemporalAmount Modifier and Type Method Description static Duration
Duration. from(TemporalAmount amount)
Obtains an instance ofDuration
from an amount.static Period
Period. from(TemporalAmount amount)
Obtains an instance ofPeriod
from a temporal amount.Instant
Instant. minus(TemporalAmount amount)
Returns an object of the same type as this object with an amount subtracted.LocalDate
LocalDate. minus(TemporalAmount amount)
Returns a copy of this date with the specified period subtracted.LocalDateTime
LocalDateTime. minus(TemporalAmount amount)
Returns a copy of this date-time with the specified period subtracted.LocalTime
LocalTime. minus(TemporalAmount amount)
Returns a copy of this time with the specified period subtracted.OffsetDateTime
OffsetDateTime. minus(TemporalAmount amount)
Returns a copy of this date-time with the specified period subtracted.OffsetTime
OffsetTime. minus(TemporalAmount amount)
Returns a copy of this time with the specified period subtracted.Period
Period. minus(TemporalAmount amountToSubtract)
Returns a copy of this period with the specified amount subtracted.Year
Year. minus(TemporalAmount amount)
Returns a copy of this year with the specified period subtracted.YearMonth
YearMonth. minus(TemporalAmount amount)
Returns a copy of this year-month with the specified period subtracted.ZonedDateTime
ZonedDateTime. minus(TemporalAmount amount)
Returns a copy of this date-time with the specified period subtracted.Instant
Instant. plus(TemporalAmount amount)
Returns an object of the same type as this object with an amount added.LocalDate
LocalDate. plus(TemporalAmount amount)
Returns a copy of this date with the specified period added.LocalDateTime
LocalDateTime. plus(TemporalAmount amount)
Returns a copy of this date-time with the specified period added.LocalTime
LocalTime. plus(TemporalAmount amount)
Returns a copy of this date with the specified period added.OffsetDateTime
OffsetDateTime. plus(TemporalAmount amount)
Returns a copy of this date-time with the specified period added.OffsetTime
OffsetTime. plus(TemporalAmount amount)
Returns a copy of this date with the specified period added.Period
Period. plus(TemporalAmount amountToAdd)
Returns a copy of this period with the specified amount added.Year
Year. plus(TemporalAmount amount)
Returns a copy of this year with the specified period added.YearMonth
YearMonth. plus(TemporalAmount amount)
Returns a copy of this year-month with the specified period added.ZonedDateTime
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 TemporalAmount Modifier and Type Class Description class
ChronoPeriod
A 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 TemporalAmount Modifier and Type Method Description ChronoLocalDate
ChronoLocalDate. minus(TemporalAmount amount)
ChronoLocalDateTime<D>
ChronoLocalDateTime. minus(TemporalAmount amount)
abstract ChronoPeriod
ChronoPeriod. minus(TemporalAmount amountToSubtract)
Returns a copy of this period with the specified period subtracted.ChronoZonedDateTime<D>
ChronoZonedDateTime. minus(TemporalAmount amount)
HijrahDate
HijrahDate. minus(TemporalAmount amount)
JapaneseDate
JapaneseDate. minus(TemporalAmount amount)
MinguoDate
MinguoDate. minus(TemporalAmount amount)
ThaiBuddhistDate
ThaiBuddhistDate. minus(TemporalAmount amount)
ChronoLocalDate
ChronoLocalDate. plus(TemporalAmount amount)
ChronoLocalDateTime<D>
ChronoLocalDateTime. plus(TemporalAmount amount)
abstract ChronoPeriod
ChronoPeriod. plus(TemporalAmount amountToAdd)
Returns a copy of this period with the specified period added.ChronoZonedDateTime<D>
ChronoZonedDateTime. plus(TemporalAmount amount)
HijrahDate
HijrahDate. plus(TemporalAmount amount)
JapaneseDate
JapaneseDate. plus(TemporalAmount amount)
MinguoDate
MinguoDate. plus(TemporalAmount amount)
ThaiBuddhistDate
ThaiBuddhistDate. plus(TemporalAmount amount)
-
Uses of TemporalAmount in org.threeten.bp.jdk8
Methods in org.threeten.bp.jdk8 with parameters of type TemporalAmount Modifier and Type Method Description Temporal
DefaultInterfaceTemporal. minus(TemporalAmount amount)
Temporal
DefaultInterfaceTemporal. plus(TemporalAmount amount)
-
Uses of TemporalAmount in org.threeten.bp.temporal
Methods in org.threeten.bp.temporal with parameters of type TemporalAmount Modifier and Type Method Description Temporal
Temporal. minus(TemporalAmount amount)
Returns an object of the same type as this object with an amount subtracted.Temporal
Temporal. plus(TemporalAmount amount)
Returns an object of the same type as this object with an amount added.
-