|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TemporalAmount | |
|---|---|
| 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 | |
|---|---|
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 | |
|---|---|
static Period |
Period.from(TemporalAmount amount)
Obtains an instance of Period from a temporal amount. |
static Duration |
Duration.from(TemporalAmount amount)
Obtains an instance of Duration from an amount. |
ZonedDateTime |
ZonedDateTime.minus(TemporalAmount amount)
Returns a copy of this date-time with the specified period subtracted. |
YearMonth |
YearMonth.minus(TemporalAmount amount)
Returns a copy of this year-month with the specified period subtracted. |
Year |
Year.minus(TemporalAmount amount)
Returns a copy of this year with the specified period subtracted. |
Period |
Period.minus(TemporalAmount amountToSubtract)
Returns a copy of this period with the specified amount subtracted. |
OffsetTime |
OffsetTime.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. |
LocalTime |
LocalTime.minus(TemporalAmount amount)
Returns a copy of this time with the specified period subtracted. |
LocalDateTime |
LocalDateTime.minus(TemporalAmount amount)
Returns a copy of this date-time with the specified period subtracted. |
LocalDate |
LocalDate.minus(TemporalAmount amount)
Returns a copy of this date with the specified period subtracted. |
Instant |
Instant.minus(TemporalAmount amount)
Returns an object of the same type as this object with an amount subtracted. |
ZonedDateTime |
ZonedDateTime.plus(TemporalAmount amount)
Returns a copy of this date-time with the specified period added. |
YearMonth |
YearMonth.plus(TemporalAmount amount)
Returns a copy of this year-month with the specified period added. |
Year |
Year.plus(TemporalAmount amount)
Returns a copy of this year with the specified period added. |
Period |
Period.plus(TemporalAmount amountToAdd)
Returns a copy of this period with the specified amount added. |
OffsetTime |
OffsetTime.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. |
LocalTime |
LocalTime.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. |
LocalDate |
LocalDate.plus(TemporalAmount amount)
Returns a copy of this date with the specified period added. |
Instant |
Instant.plus(TemporalAmount amount)
Returns an object of the same type as this object with an amount added. |
| Uses of TemporalAmount in org.threeten.bp.chrono |
|---|
| Classes in org.threeten.bp.chrono that implement TemporalAmount | |
|---|---|
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 | |
|---|---|
ThaiBuddhistDate |
ThaiBuddhistDate.minus(TemporalAmount amount)
|
MinguoDate |
MinguoDate.minus(TemporalAmount amount)
|
JapaneseDate |
JapaneseDate.minus(TemporalAmount amount)
|
HijrahDate |
HijrahDate.minus(TemporalAmount amount)
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.minus(TemporalAmount amount)
|
abstract ChronoPeriod |
ChronoPeriod.minus(TemporalAmount amountToSubtract)
Returns a copy of this period with the specified period subtracted. |
ChronoLocalDateTime<D> |
ChronoLocalDateTime.minus(TemporalAmount amount)
|
ChronoLocalDate |
ChronoLocalDate.minus(TemporalAmount amount)
|
ThaiBuddhistDate |
ThaiBuddhistDate.plus(TemporalAmount amount)
|
MinguoDate |
MinguoDate.plus(TemporalAmount amount)
|
JapaneseDate |
JapaneseDate.plus(TemporalAmount amount)
|
HijrahDate |
HijrahDate.plus(TemporalAmount amount)
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.plus(TemporalAmount amount)
|
abstract ChronoPeriod |
ChronoPeriod.plus(TemporalAmount amountToAdd)
Returns a copy of this period with the specified period added. |
ChronoLocalDateTime<D> |
ChronoLocalDateTime.plus(TemporalAmount amount)
|
ChronoLocalDate |
ChronoLocalDate.plus(TemporalAmount amount)
|
| Uses of TemporalAmount in org.threeten.bp.jdk8 |
|---|
| Methods in org.threeten.bp.jdk8 with parameters of type TemporalAmount | |
|---|---|
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 | |
|---|---|
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. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||