Uses of Interface org.joda.time.ReadablePeriod

Uses in package org.joda.time

Classes implementing org.joda.time.ReadablePeriod

class
An immutable time period representing a number of days.
class
An immutable time period representing a number of hours.
class
An immutable time period representing a number of minutes.
class
An immutable time period representing a number of months.
class
Standard mutable time period implementation.
class
An immutable time period specifying a set of duration field values.
class
An immutable time period representing a number of seconds.
class
An immutable time period representing a number of weeks.
class
An immutable time period representing a number of years.

Constructors with parameter type org.joda.time.ReadablePeriod

Constructs an interval from a start instant and a time period.
Constructs an interval from a time period and an end instant.
Constructs an interval from a start instant and a time period.
Constructs an interval from a time period and an end instant.

Methods with parameter type org.joda.time.ReadablePeriod

void
Adds a period to this instant.
void
Adds a period to this one by adding each field in turn.
void
Adds a period to this instant.
void
Adds a period to this one by adding each field in turn.
void
MutableDateTime.add(ReadablePeriod period, int scalar)
Adds a period to this instant specifying how many times to add.
void
ReadWritableInstant.add(ReadablePeriod period, int scalar)
Adds a period to this instant specifying how many times to add.
long
Chronology.add(ReadablePeriod period, long instant, int scalar)
Adds the period to the instant, specifying the number of times to add.
int[]
Chronology.get(ReadablePeriod period, long duration)
Gets the values of a period from an interval.
int[]
Chronology.get(ReadablePeriod period, long startInstant, long endInstant)
Gets the values of a period from an interval.
void
Merges all the fields from the specified period into this one.
DateMidnight
Returns a copy of this date with the specified period taken away.
DateTime
Returns a copy of this datetime with the specified period taken away.
LocalDate
Returns a copy of this date with the specified period taken away.
LocalDateTime
Returns a copy of this datetime with the specified period taken away.
LocalTime
Returns a copy of this time with the specified period taken away.
Partial
Gets a copy of this instance with the specified period take away.
Period
Returns a new period with the specified period subtracted.
TimeOfDay
Returns a copy of this time with the specified period taken away, wrapping to what would be a new day if required.
YearMonthDay
Returns a copy of this date with the specified period taken away.
DateMidnight
Returns a copy of this date with the specified period added.
DateTime
Returns a copy of this datetime with the specified period added.
LocalDate
Returns a copy of this date with the specified period added.
LocalDateTime
Returns a copy of this datetime with the specified period added.
LocalTime
Returns a copy of this time with the specified period added.
Partial
Gets a copy of this instance with the specified period added.
Period
Returns a new period with the specified period added.
TimeOfDay
Returns a copy of this time with the specified period added, wrapping to what would be a new day if required.
YearMonthDay
Returns a copy of this date with the specified period added.
void
Sets all the fields in one go from another ReadablePeriod.
void
Sets all the fields in one go from another ReadablePeriod.
void
Sets the period of this time interval, preserving the start instant and using the ISOChronology in the default zone for calculations.
void
Sets the period of this time interval, preserving the start instant.
void
Sets the period of this time interval, preserving the end instant and using the ISOChronology in the default zone for calculations.
void
Sets the period of this time interval, preserving the end instant.
Days
Creates a new Days representing the number of complete standard length days in the specified period.
Hours
Creates a new Hours representing the number of complete standard length hours in the specified period.
Minutes
Creates a new Minutes representing the number of complete standard length minutes in the specified period.
Seconds
Creates a new Seconds representing the number of complete standard length seconds in the specified period.
Weeks
Creates a new Weeks representing the number of complete standard length weeks in the specified period.
Period
Creates a new Period instance with the fields from the specified period copied on top of those from this period.
DateMidnight
Returns a copy of this date with the specified period added.
DateTime
Returns a copy of this datetime with the specified period added.
LocalDate
Returns a copy of this date with the specified period added.
LocalDateTime
Returns a copy of this datetime with the specified period added.
LocalTime
Returns a copy of this time with the specified period added.
Partial
Partial.withPeriodAdded(ReadablePeriod period, int scalar)
Gets a copy of this Partial with the specified period added.
TimeOfDay
Returns a copy of this time with the specified period added, wrapping to what would be a new day if required.
YearMonthDay
Returns a copy of this date with the specified period added.
Interval
Creates a new interval with the specified period after the start instant.
Interval
Creates a new interval with the specified period before the end instant.

Uses in package org.joda.time.chrono

Methods with parameter type org.joda.time.ReadablePeriod

long
BaseChronology.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 in package org.joda.time.format

Methods with parameter type org.joda.time.ReadablePeriod

int
Returns the exact number of characters produced for the given period.
int
PeriodPrinter.countFieldsToPrint(ReadablePeriod period, int stopAt, Locale locale)
Returns the amount of fields from the given period that this printer will print.
String
Prints a ReadablePeriod to a new String.
void
PeriodFormatter.printTo(StringBuffer buf, ReadablePeriod period)
Prints a ReadablePeriod to a StringBuffer.
void
PeriodPrinter.printTo(StringBuffer buf, ReadablePeriod period, Locale locale)
Prints a ReadablePeriod to a StringBuffer.
void
PeriodFormatter.printTo(Writer out, ReadablePeriod period)
Prints a ReadablePeriod to a Writer.
void
PeriodPrinter.printTo(Writer out, ReadablePeriod period, Locale locale)
Prints a ReadablePeriod to a Writer.

Uses in package org.joda.time.base

Classes implementing org.joda.time.ReadablePeriod

class
AbstractPeriod provides the common behaviour for period classes.
class
BasePeriod is an abstract implementation of ReadablePeriod that stores data in a PeriodType and an int[].
class
BaseSingleFieldPeriod is an abstract implementation of ReadablePeriod that manages a single duration field, such as days or minutes.

Constructors with parameter type org.joda.time.ReadablePeriod

Constructs an interval from a start instant and a time period.
Constructs an interval from a time period and an end instant.

Methods with parameter type org.joda.time.ReadablePeriod

void
Adds the fields from another period.
int[]
BasePeriod.addPeriodInto(int[] values, ReadablePeriod period)
Adds the fields from another period.
int
Calculates the number of whole units between the two specified partial datetimes.
void
Merges the fields from another period.
int[]
BasePeriod.mergePeriodInto(int[] values, ReadablePeriod period)
Merges the fields from another period.
void
Sets all the fields of this period from another.
int
Creates a new instance representing the number of complete standard length units in the specified period.

Copyright (c) 2001-2006 - Joda.org