|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use TemporalUnit | |
|---|---|
| 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 TemporalUnit in org.threeten.bp |
|---|
| Methods in org.threeten.bp that return types with arguments of type TemporalUnit | |
|---|---|
List<TemporalUnit> |
Period.getUnits()
|
List<TemporalUnit> |
Duration.getUnits()
|
| Methods in org.threeten.bp with parameters of type TemporalUnit | |
|---|---|
long |
Period.get(TemporalUnit unit)
|
long |
Duration.get(TemporalUnit unit)
|
boolean |
ZonedDateTime.isSupported(TemporalUnit unit)
|
boolean |
YearMonth.isSupported(TemporalUnit unit)
|
boolean |
Year.isSupported(TemporalUnit unit)
|
boolean |
OffsetTime.isSupported(TemporalUnit unit)
|
boolean |
OffsetDateTime.isSupported(TemporalUnit unit)
|
boolean |
LocalTime.isSupported(TemporalUnit unit)
|
boolean |
LocalDateTime.isSupported(TemporalUnit unit)
|
boolean |
Instant.isSupported(TemporalUnit unit)
|
ZonedDateTime |
ZonedDateTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date-time with the specified period subtracted. |
YearMonth |
YearMonth.minus(long amountToSubtract,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted. |
Year |
Year.minus(long amountToSubtract,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted. |
OffsetTime |
OffsetTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this time with the specified period subtracted. |
OffsetDateTime |
OffsetDateTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date-time with the specified period subtracted. |
LocalTime |
LocalTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this time with the specified period subtracted. |
LocalDateTime |
LocalDateTime.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date-time with the specified period subtracted. |
LocalDate |
LocalDate.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this date with the specified period subtracted. |
Instant |
Instant.minus(long amountToSubtract,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted. |
Duration |
Duration.minus(long amountToSubtract,
TemporalUnit unit)
Returns a copy of this duration with the specified duration subtracted. |
static Duration |
Duration.of(long amount,
TemporalUnit unit)
Obtains an instance of Duration from a duration in the specified unit. |
ZonedDateTime |
ZonedDateTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date-time with the specified period added. |
YearMonth |
YearMonth.plus(long amountToAdd,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period added. |
Year |
Year.plus(long amountToAdd,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period added. |
OffsetTime |
OffsetTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this time with the specified period added. |
OffsetDateTime |
OffsetDateTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date-time with the specified period added. |
LocalTime |
LocalTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this time with the specified period added. |
LocalDateTime |
LocalDateTime.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date-time with the specified period added. |
LocalDate |
LocalDate.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this date with the specified period added. |
Instant |
Instant.plus(long amountToAdd,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period added. |
Duration |
Duration.plus(long amountToAdd,
TemporalUnit unit)
Returns a copy of this duration with the specified duration added. |
ZonedDateTime |
ZonedDateTime.truncatedTo(TemporalUnit unit)
Returns a copy of this ZonedDateTime with the time truncated. |
OffsetTime |
OffsetTime.truncatedTo(TemporalUnit unit)
Returns a copy of this OffsetTime with the time truncated. |
OffsetDateTime |
OffsetDateTime.truncatedTo(TemporalUnit unit)
Returns a copy of this OffsetDateTime with the time truncated. |
LocalTime |
LocalTime.truncatedTo(TemporalUnit unit)
Returns a copy of this LocalTime with the time truncated. |
LocalDateTime |
LocalDateTime.truncatedTo(TemporalUnit unit)
Returns a copy of this LocalDateTime with the time truncated. |
Instant |
Instant.truncatedTo(TemporalUnit unit)
Returns a copy of this Instant truncated to the specified unit. |
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 TemporalUnit in org.threeten.bp.chrono |
|---|
| Methods in org.threeten.bp.chrono that return types with arguments of type TemporalUnit | |
|---|---|
abstract List<TemporalUnit> |
ChronoPeriod.getUnits()
Gets the set of units supported by this period. |
| Methods in org.threeten.bp.chrono with parameters of type TemporalUnit | |
|---|---|
abstract long |
ChronoPeriod.get(TemporalUnit unit)
Gets the value of the requested unit. |
boolean |
ChronoLocalDate.isSupported(TemporalUnit unit)
|
ThaiBuddhistDate |
ThaiBuddhistDate.minus(long amountToAdd,
TemporalUnit unit)
|
MinguoDate |
MinguoDate.minus(long amountToAdd,
TemporalUnit unit)
|
JapaneseDate |
JapaneseDate.minus(long amountToAdd,
TemporalUnit unit)
|
HijrahDate |
HijrahDate.minus(long amountToAdd,
TemporalUnit unit)
|
ChronoZonedDateTime<D> |
ChronoZonedDateTime.minus(long amountToSubtract,
TemporalUnit unit)
|
ChronoLocalDateTime<D> |
ChronoLocalDateTime.minus(long amountToSubtract,
TemporalUnit unit)
|
ChronoLocalDate |
ChronoLocalDate.minus(long amountToSubtract,
TemporalUnit unit)
|
ThaiBuddhistDate |
ThaiBuddhistDate.plus(long amountToAdd,
TemporalUnit unit)
|
MinguoDate |
MinguoDate.plus(long amountToAdd,
TemporalUnit unit)
|
JapaneseDate |
JapaneseDate.plus(long amountToAdd,
TemporalUnit unit)
|
HijrahDate |
HijrahDate.plus(long amountToAdd,
TemporalUnit unit)
|
abstract ChronoZonedDateTime<D> |
ChronoZonedDateTime.plus(long amountToAdd,
TemporalUnit unit)
|
abstract ChronoLocalDateTime<D> |
ChronoLocalDateTime.plus(long amountToAdd,
TemporalUnit unit)
|
abstract ChronoLocalDate |
ChronoLocalDate.plus(long amountToAdd,
TemporalUnit unit)
|
| Uses of TemporalUnit in org.threeten.bp.jdk8 |
|---|
| Methods in org.threeten.bp.jdk8 with parameters of type TemporalUnit | |
|---|---|
Temporal |
DefaultInterfaceTemporal.minus(long amountToSubtract,
TemporalUnit unit)
|
| Uses of TemporalUnit in org.threeten.bp.temporal |
|---|
| Classes in org.threeten.bp.temporal that implement TemporalUnit | |
|---|---|
class |
ChronoUnit
A standard set of date periods units. |
| Fields in org.threeten.bp.temporal declared as TemporalUnit | |
|---|---|
static TemporalUnit |
IsoFields.QUARTER_YEARS
Unit that represents the concept of a quarter-year. |
static TemporalUnit |
IsoFields.WEEK_BASED_YEARS
The unit that represents week-based-years for the purpose of addition and subtraction. |
| Methods in org.threeten.bp.temporal that return TemporalUnit | |
|---|---|
TemporalUnit |
TemporalField.getBaseUnit()
Gets the unit that the field is measured in. |
TemporalUnit |
ChronoField.getBaseUnit()
|
TemporalUnit |
TemporalField.getRangeUnit()
Gets the range that the field is bound by. |
TemporalUnit |
ChronoField.getRangeUnit()
|
| Methods in org.threeten.bp.temporal that return types with arguments of type TemporalUnit | |
|---|---|
List<TemporalUnit> |
TemporalAmount.getUnits()
Gets the list of units, from largest to smallest, that fully define this amount. |
static TemporalQuery<TemporalUnit> |
TemporalQueries.precision()
A query for the smallest supported unit. |
| Methods in org.threeten.bp.temporal with parameters of type TemporalUnit | |
|---|---|
long |
TemporalAmount.get(TemporalUnit unit)
Gets the amount associated with the specified unit. |
boolean |
Temporal.isSupported(TemporalUnit unit)
Checks if the specified unit is supported. |
Temporal |
Temporal.minus(long amountToSubtract,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period subtracted. |
Temporal |
Temporal.plus(long amountToAdd,
TemporalUnit unit)
Returns an object of the same type as this object with the specified period added. |
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 | |||||||||