Uses of Interface
org.joda.time.ReadablePeriod
Packages that use ReadablePeriod
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Package containing the chronology classes which define the calendar systems.
Provides printing and parsing support for instants and durations.
-
Uses of ReadablePeriod in org.joda.time
Subinterfaces of ReadablePeriod in org.joda.timeModifier and TypeInterfaceDescriptioninterfaceDefines a duration of time that can be queried and modified using datetime fields.Classes in org.joda.time that implement ReadablePeriodModifier and TypeClassDescriptionfinal classAn immutable time period representing a number of days.final classAn immutable time period representing a number of hours.final classAn immutable time period representing a number of minutes.final classAn immutable time period representing a number of months.classStandard mutable time period implementation.final classAn immutable time period specifying a set of duration field values.final classAn immutable time period representing a number of seconds.final classAn immutable time period representing a number of weeks.final classAn immutable time period representing a number of years.Methods in org.joda.time with parameters of type ReadablePeriodModifier and TypeMethodDescriptionabstract longChronology.add(ReadablePeriod period, long instant, int scalar) Adds the period to the instant, specifying the number of times to add.voidMutableDateTime.add(ReadablePeriod period) Adds a period to this instant.voidMutableDateTime.add(ReadablePeriod period, int scalar) Adds a period to this instant specifying how many times to add.voidMutablePeriod.add(ReadablePeriod period) Adds a period to this one by adding each field in turn.voidReadWritableInstant.add(ReadablePeriod period) Adds a period to this instant.voidReadWritableInstant.add(ReadablePeriod period, int scalar) Adds a period to this instant specifying how many times to add.voidReadWritablePeriod.add(ReadablePeriod period) Adds a period to this one by adding each field in turn.abstract int[]Chronology.get(ReadablePeriod period, long duration) Gets the values of a period from an interval.abstract int[]Chronology.get(ReadablePeriod period, long startInstant, long endInstant) Gets the values of a period from an interval.voidMutablePeriod.mergePeriod(ReadablePeriod period) Merges all the fields from the specified period into this one.DateMidnight.minus(ReadablePeriod period) Deprecated.Returns a copy of this date with the specified period taken away.DateTime.minus(ReadablePeriod period) Returns a copy of this datetime with the specified period taken away.LocalDate.minus(ReadablePeriod period) Returns a copy of this date with the specified period taken away.LocalDateTime.minus(ReadablePeriod period) Returns a copy of this datetime with the specified period taken away.LocalTime.minus(ReadablePeriod period) Returns a copy of this time with the specified period taken away.MonthDay.minus(ReadablePeriod period) Returns a copy of this month-day with the specified period taken away.Partial.minus(ReadablePeriod period) Gets a copy of this instance with the specified period take away.Period.minus(ReadablePeriod period) Returns a new period with the specified period subtracted.TimeOfDay.minus(ReadablePeriod period) Deprecated.Returns a copy of this time with the specified period taken away, wrapping to what would be a new day if required.YearMonth.minus(ReadablePeriod period) Returns a copy of this year-month with the specified period taken away.YearMonthDay.minus(ReadablePeriod period) Deprecated.Returns a copy of this date with the specified period taken away.DateMidnight.plus(ReadablePeriod period) Deprecated.Returns a copy of this date with the specified period added.DateTime.plus(ReadablePeriod period) Returns a copy of this datetime with the specified period added.LocalDate.plus(ReadablePeriod period) Returns a copy of this date with the specified period added.LocalDateTime.plus(ReadablePeriod period) Returns a copy of this datetime with the specified period added.LocalTime.plus(ReadablePeriod period) Returns a copy of this time with the specified period added.MonthDay.plus(ReadablePeriod period) Returns a copy of this month-day with the specified period added.Partial.plus(ReadablePeriod period) Gets a copy of this instance with the specified period added.Period.plus(ReadablePeriod period) Returns a new period with the specified period added.TimeOfDay.plus(ReadablePeriod period) Deprecated.Returns a copy of this time with the specified period added, wrapping to what would be a new day if required.YearMonth.plus(ReadablePeriod period) Returns a copy of this year-month with the specified period added.YearMonthDay.plus(ReadablePeriod period) Deprecated.Returns a copy of this date with the specified period added.voidMutablePeriod.setPeriod(ReadablePeriod period) Sets all the fields in one go from another ReadablePeriod.voidReadWritablePeriod.setPeriod(ReadablePeriod period) Sets all the fields in one go from another ReadablePeriod.voidMutableInterval.setPeriodAfterStart(ReadablePeriod period) Sets the period of this time interval, preserving the start instant and using the ISOChronology in the default zone for calculations.voidReadWritableInterval.setPeriodAfterStart(ReadablePeriod period) Sets the period of this time interval, preserving the start instant.voidMutableInterval.setPeriodBeforeEnd(ReadablePeriod period) Sets the period of this time interval, preserving the end instant and using the ISOChronology in the default zone for calculations.voidReadWritableInterval.setPeriodBeforeEnd(ReadablePeriod period) Sets the period of this time interval, preserving the end instant.static DaysDays.standardDaysIn(ReadablePeriod period) Creates a newDaysrepresenting the number of complete standard length days in the specified period.static HoursHours.standardHoursIn(ReadablePeriod period) Creates a newHoursrepresenting the number of complete standard length hours in the specified period.static MinutesMinutes.standardMinutesIn(ReadablePeriod period) Creates a newMinutesrepresenting the number of complete standard length minutes in the specified period.static SecondsSeconds.standardSecondsIn(ReadablePeriod period) Creates a newSecondsrepresenting the number of complete standard length seconds in the specified period.static WeeksWeeks.standardWeeksIn(ReadablePeriod period) Creates a newWeeksrepresenting the number of complete standard length weeks in the specified period.Period.withFields(ReadablePeriod period) Creates a new Period instance with the fields from the specified period copied on top of those from this period.DateMidnight.withPeriodAdded(ReadablePeriod period, int scalar) Deprecated.Returns a copy of this date with the specified period added.DateTime.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this datetime with the specified period added.LocalDate.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this date with the specified period added.LocalDateTime.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this datetime with the specified period added.LocalTime.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this time with the specified period added.MonthDay.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this month-day with the specified period added.Partial.withPeriodAdded(ReadablePeriod period, int scalar) Gets a copy of this Partial with the specified period added.TimeOfDay.withPeriodAdded(ReadablePeriod period, int scalar) Deprecated.Returns a copy of this time with the specified period added, wrapping to what would be a new day if required.YearMonth.withPeriodAdded(ReadablePeriod period, int scalar) Returns a copy of this year-month with the specified period added.YearMonthDay.withPeriodAdded(ReadablePeriod period, int scalar) Deprecated.Returns a copy of this date with the specified period added.Interval.withPeriodAfterStart(ReadablePeriod period) Creates a new interval with the specified period after the start instant.Interval.withPeriodBeforeEnd(ReadablePeriod period) Creates a new interval with the specified period before the end instant.Constructors in org.joda.time with parameters of type ReadablePeriodModifierConstructorDescriptionInterval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period.Interval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant.MutableInterval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period.MutableInterval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant. -
Uses of ReadablePeriod in org.joda.time.base
Classes in org.joda.time.base that implement ReadablePeriodModifier and TypeClassDescriptionclassAbstractPeriod provides the common behaviour for period classes.classBasePeriod is an abstract implementation of ReadablePeriod that stores data in aPeriodTypeand anint[].classBaseSingleFieldPeriod is an abstract implementation of ReadablePeriod that manages a single duration field, such as days or minutes.Methods in org.joda.time.base with parameters of type ReadablePeriodModifier and TypeMethodDescriptionprotected voidBasePeriod.addPeriod(ReadablePeriod period) Adds the fields from another period.protected int[]BasePeriod.addPeriodInto(int[] values, ReadablePeriod period) Adds the fields from another period.protected static intBaseSingleFieldPeriod.between(ReadablePartial start, ReadablePartial end, ReadablePeriod zeroInstance) Calculates the number of whole units between the two specified partial datetimes.protected voidBasePeriod.mergePeriod(ReadablePeriod period) Merges the fields from another period.protected int[]BasePeriod.mergePeriodInto(int[] values, ReadablePeriod period) Merges the fields from another period.protected voidBasePeriod.setPeriod(ReadablePeriod period) Sets all the fields of this period from another.protected static intBaseSingleFieldPeriod.standardPeriodIn(ReadablePeriod period, long millisPerUnit) Creates a new instance representing the number of complete standard length units in the specified period.Constructors in org.joda.time.base with parameters of type ReadablePeriodModifierConstructorDescriptionprotectedBaseInterval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period.protectedBaseInterval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant. -
Uses of ReadablePeriod in org.joda.time.chrono
Methods in org.joda.time.chrono with parameters of type ReadablePeriodModifier and TypeMethodDescriptionlongBaseChronology.add(ReadablePeriod period, long instant, int scalar) Adds the period to the instant, specifying the number of times to add.int[]BaseChronology.get(ReadablePeriod period, long duration) Gets the values of a period from an interval.int[]BaseChronology.get(ReadablePeriod period, long startInstant, long endInstant) Gets the values of a period from an interval. -
Uses of ReadablePeriod in org.joda.time.format
Methods in org.joda.time.format with parameters of type ReadablePeriodModifier and TypeMethodDescriptionintPeriodPrinter.calculatePrintedLength(ReadablePeriod period, Locale locale) Returns the exact number of characters produced for the given period.intPeriodPrinter.countFieldsToPrint(ReadablePeriod period, int stopAt, Locale locale) Returns the amount of fields from the given period that this printer will print.PeriodFormatter.print(ReadablePeriod period) Prints a ReadablePeriod to a new String.voidPeriodFormatter.printTo(Writer out, ReadablePeriod period) Prints a ReadablePeriod to a Writer.voidPeriodFormatter.printTo(StringBuffer buf, ReadablePeriod period) Prints a ReadablePeriod to a StringBuffer.voidPeriodPrinter.printTo(Writer out, ReadablePeriod period, Locale locale) Prints a ReadablePeriod to a Writer.voidPeriodPrinter.printTo(StringBuffer buf, ReadablePeriod period, Locale locale) Prints a ReadablePeriod to a StringBuffer.