Uses of Interface
org.threeten.bp.temporal.TemporalUnit
-
Packages that use TemporalUnit 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 TemporalUnit in org.threeten.bp
Methods in org.threeten.bp that return types with arguments of type TemporalUnit Modifier and Type Method Description java.util.List<TemporalUnit>Duration. getUnits()java.util.List<TemporalUnit>Period. getUnits()Methods in org.threeten.bp with parameters of type TemporalUnit Modifier and Type Method Description longDuration. get(TemporalUnit unit)longPeriod. get(TemporalUnit unit)booleanInstant. isSupported(TemporalUnit unit)booleanLocalDateTime. isSupported(TemporalUnit unit)booleanLocalTime. isSupported(TemporalUnit unit)booleanOffsetDateTime. isSupported(TemporalUnit unit)booleanOffsetTime. isSupported(TemporalUnit unit)booleanYear. isSupported(TemporalUnit unit)booleanYearMonth. isSupported(TemporalUnit unit)booleanZonedDateTime. isSupported(TemporalUnit unit)DurationDuration. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this duration with the specified duration subtracted.InstantInstant. minus(long amountToSubtract, TemporalUnit unit)Returns an object of the same type as this object with the specified period subtracted.LocalDateLocalDate. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this date with the specified period subtracted.LocalDateTimeLocalDateTime. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this date-time with the specified period subtracted.LocalTimeLocalTime. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this time with the specified period subtracted.OffsetDateTimeOffsetDateTime. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this date-time with the specified period subtracted.OffsetTimeOffsetTime. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this time with the specified period subtracted.YearYear. minus(long amountToSubtract, TemporalUnit unit)Returns an object of the same type as this object with the specified period subtracted.YearMonthYearMonth. minus(long amountToSubtract, TemporalUnit unit)Returns an object of the same type as this object with the specified period subtracted.ZonedDateTimeZonedDateTime. minus(long amountToSubtract, TemporalUnit unit)Returns a copy of this date-time with the specified period subtracted.static DurationDuration. of(long amount, TemporalUnit unit)Obtains an instance ofDurationfrom a duration in the specified unit.DurationDuration. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this duration with the specified duration added.InstantInstant. plus(long amountToAdd, TemporalUnit unit)Returns an object of the same type as this object with the specified period added.LocalDateLocalDate. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this date with the specified period added.LocalDateTimeLocalDateTime. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this date-time with the specified period added.LocalTimeLocalTime. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this time with the specified period added.OffsetDateTimeOffsetDateTime. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this date-time with the specified period added.OffsetTimeOffsetTime. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this time with the specified period added.YearYear. plus(long amountToAdd, TemporalUnit unit)Returns an object of the same type as this object with the specified period added.YearMonthYearMonth. plus(long amountToAdd, TemporalUnit unit)Returns an object of the same type as this object with the specified period added.ZonedDateTimeZonedDateTime. plus(long amountToAdd, TemporalUnit unit)Returns a copy of this date-time with the specified period added.InstantInstant. truncatedTo(TemporalUnit unit)Returns a copy of thisInstanttruncated to the specified unit.LocalDateTimeLocalDateTime. truncatedTo(TemporalUnit unit)Returns a copy of thisLocalDateTimewith the time truncated.LocalTimeLocalTime. truncatedTo(TemporalUnit unit)Returns a copy of thisLocalTimewith the time truncated.OffsetDateTimeOffsetDateTime. truncatedTo(TemporalUnit unit)Returns a copy of thisOffsetDateTimewith the time truncated.OffsetTimeOffsetTime. truncatedTo(TemporalUnit unit)Returns a copy of thisOffsetTimewith the time truncated.ZonedDateTimeZonedDateTime. truncatedTo(TemporalUnit unit)Returns a copy of thisZonedDateTimewith the time truncated.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 TemporalUnit in org.threeten.bp.chrono
Methods in org.threeten.bp.chrono that return types with arguments of type TemporalUnit Modifier and Type Method Description abstract java.util.List<TemporalUnit>ChronoPeriod. getUnits()Gets the set of units supported by this period.java.util.List<TemporalUnit>ChronoPeriodImpl. getUnits()Methods in org.threeten.bp.chrono with parameters of type TemporalUnit Modifier and Type Method Description abstract longChronoPeriod. get(TemporalUnit unit)Gets the value of the requested unit.longChronoPeriodImpl. get(TemporalUnit unit)booleanChronoLocalDate. isSupported(TemporalUnit unit)booleanChronoLocalDateTimeImpl. isSupported(TemporalUnit unit)booleanChronoZonedDateTimeImpl. isSupported(TemporalUnit unit)ChronoLocalDateChronoLocalDate. minus(long amountToSubtract, TemporalUnit unit)ChronoLocalDateTime<D>ChronoLocalDateTime. minus(long amountToSubtract, TemporalUnit unit)ChronoZonedDateTime<D>ChronoZonedDateTime. minus(long amountToSubtract, TemporalUnit unit)HijrahDateHijrahDate. minus(long amountToAdd, TemporalUnit unit)JapaneseDateJapaneseDate. minus(long amountToAdd, TemporalUnit unit)MinguoDateMinguoDate. minus(long amountToAdd, TemporalUnit unit)ThaiBuddhistDateThaiBuddhistDate. minus(long amountToAdd, TemporalUnit unit)ChronoDateImpl<D>ChronoDateImpl. plus(long amountToAdd, TemporalUnit unit)abstract ChronoLocalDateChronoLocalDate. plus(long amountToAdd, TemporalUnit unit)abstract ChronoLocalDateTime<D>ChronoLocalDateTime. plus(long amountToAdd, TemporalUnit unit)ChronoLocalDateTimeImpl<D>ChronoLocalDateTimeImpl. plus(long amountToAdd, TemporalUnit unit)abstract ChronoZonedDateTime<D>ChronoZonedDateTime. plus(long amountToAdd, TemporalUnit unit)ChronoZonedDateTime<D>ChronoZonedDateTimeImpl. plus(long amountToAdd, TemporalUnit unit)HijrahDateHijrahDate. plus(long amountToAdd, TemporalUnit unit)JapaneseDateJapaneseDate. plus(long amountToAdd, TemporalUnit unit)MinguoDateMinguoDate. plus(long amountToAdd, TemporalUnit unit)ThaiBuddhistDateThaiBuddhistDate. plus(long amountToAdd, TemporalUnit unit)longChronoDateImpl. until(Temporal endExclusive, TemporalUnit unit)longChronoLocalDateTimeImpl. until(Temporal endExclusive, TemporalUnit unit)longChronoZonedDateTimeImpl. until(Temporal endExclusive, TemporalUnit unit) -
Uses of TemporalUnit in org.threeten.bp.jdk8
Methods in org.threeten.bp.jdk8 with parameters of type TemporalUnit Modifier and Type Method Description TemporalDefaultInterfaceTemporal. minus(long amountToSubtract, TemporalUnit unit) -
Uses of TemporalUnit in org.threeten.bp.temporal
Classes in org.threeten.bp.temporal that implement TemporalUnit Modifier and Type Class Description classChronoUnitA standard set of date periods units.private static classIsoFields.UnitImplementation of the period unit.Fields in org.threeten.bp.temporal declared as TemporalUnit Modifier and Type Field Description private TemporalUnitChronoField. baseUnitprivate TemporalUnitJulianFields.Field. baseUnitprivate TemporalUnitWeekFields.ComputedDayOfField. baseUnitstatic TemporalUnitIsoFields. QUARTER_YEARSUnit that represents the concept of a quarter-year.private TemporalUnitChronoField. rangeUnitprivate TemporalUnitJulianFields.Field. rangeUnitprivate TemporalUnitWeekFields.ComputedDayOfField. rangeUnitstatic TemporalUnitIsoFields. WEEK_BASED_YEARSThe unit that represents week-based-years for the purpose of addition and subtraction.Fields in org.threeten.bp.temporal with type parameters of type TemporalUnit Modifier and Type Field Description (package private) static TemporalQuery<TemporalUnit>TemporalQueries. PRECISIONMethods in org.threeten.bp.temporal that return TemporalUnit Modifier and Type Method Description TemporalUnitChronoField. getBaseUnit()TemporalUnitJulianFields.Field. getBaseUnit()TemporalUnitTemporalField. getBaseUnit()Gets the unit that the field is measured in.TemporalUnitWeekFields.ComputedDayOfField. getBaseUnit()TemporalUnitChronoField. getRangeUnit()TemporalUnitJulianFields.Field. getRangeUnit()TemporalUnitTemporalField. getRangeUnit()Gets the range that the field is bound by.TemporalUnitWeekFields.ComputedDayOfField. getRangeUnit()Methods in org.threeten.bp.temporal that return types with arguments of type TemporalUnit Modifier and Type Method Description java.util.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 Modifier and Type Method Description longTemporalAmount. get(TemporalUnit unit)Gets the amount associated with the specified unit.booleanTemporal. isSupported(TemporalUnit unit)Checks if the specified unit is supported.TemporalTemporal. minus(long amountToSubtract, TemporalUnit unit)Returns an object of the same type as this object with the specified period subtracted.TemporalTemporal. plus(long amountToAdd, TemporalUnit unit)Returns an object of the same type as this object with the specified period added.longTemporal. until(Temporal endTemporal, TemporalUnit unit)Calculates the period between this temporal and another temporal in terms of the specified unit.Constructors in org.threeten.bp.temporal with parameters of type TemporalUnit Constructor Description ChronoField(java.lang.String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange range)ComputedDayOfField(java.lang.String name, WeekFields weekDef, TemporalUnit baseUnit, TemporalUnit rangeUnit, ValueRange range)Field(java.lang.String name, TemporalUnit baseUnit, TemporalUnit rangeUnit, long offset)
-