|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Period | |
org.joda.time | Provides support for dates, times, time zones, durations, intervals, and partials. |
org.joda.time.base | Implementation package providing abstract and base time classes. |
org.joda.time.format | Provides printing and parsing support for instants and durations. |
Uses of Period in org.joda.time |
Fields in org.joda.time declared as Period | |
static Period |
Period.ZERO
A period of zero length and standard period type. |
Methods in org.joda.time that return Period | |
Period |
ReadablePeriod.toPeriod()
Get this period as an immutable Period object. |
Period |
ReadableInterval.toPeriod()
Converts the duration of the interval to a period using the standard period type. |
Period |
ReadableInterval.toPeriod(PeriodType type)
Converts the duration of the interval to a period using the specified period type. |
Period |
ReadableDuration.toPeriod()
Converts this duration to a Period instance using the standard period type and the ISO chronology. |
static Period |
Period.years(int years)
Create a period with a specified number of years. |
static Period |
Period.months(int months)
Create a period with a specified number of months. |
static Period |
Period.weeks(int weeks)
Create a period with a specified number of weeks. |
static Period |
Period.days(int days)
Create a period with a specified number of days. |
static Period |
Period.hours(int hours)
Create a period with a specified number of hours. |
static Period |
Period.minutes(int minutes)
Create a period with a specified number of minutes. |
static Period |
Period.seconds(int seconds)
Create a period with a specified number of seconds. |
static Period |
Period.millis(int millis)
Create a period with a specified number of millis. |
static Period |
Period.fieldDifference(ReadablePartial start,
ReadablePartial end)
Creates a period from two partially specified times, calculating by field difference. |
Period |
Period.toPeriod()
Get this period as an immutable Period object
by returning this . |
Period |
Period.withPeriodType(PeriodType type)
Creates a new Period instance with the same field values but different PeriodType. |
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. |
Period |
Period.withField(DurationFieldType field,
int value)
Creates a new Period instance with the specified field set to a new value. |
Period |
Period.withFieldAdded(DurationFieldType field,
int value)
Creates a new Period instance with the valueToAdd added to the specified field. |
Period |
Period.withYears(int years)
Returns a new period with the specified number of years. |
Period |
Period.withMonths(int months)
Returns a new period with the specified number of months. |
Period |
Period.withWeeks(int weeks)
Returns a new period with the specified number of weeks. |
Period |
Period.withDays(int days)
Returns a new period with the specified number of days. |
Period |
Period.withHours(int hours)
Returns a new period with the specified number of hours. |
Period |
Period.withMinutes(int minutes)
Returns a new period with the specified number of minutes. |
Period |
Period.withSeconds(int seconds)
Returns a new period with the specified number of seconds. |
Period |
Period.withMillis(int millis)
Returns a new period with the specified number of millis. |
Period |
Period.plus(ReadablePeriod period)
Returns a new period with the specified period added. |
Period |
Period.plusYears(int years)
Returns a new period with the specified number of years added. |
Period |
Period.plusMonths(int months)
Returns a new period plus the specified number of months added. |
Period |
Period.plusWeeks(int weeks)
Returns a new period plus the specified number of weeks added. |
Period |
Period.plusDays(int days)
Returns a new period plus the specified number of days added. |
Period |
Period.plusHours(int hours)
Returns a new period plus the specified number of hours added. |
Period |
Period.plusMinutes(int minutes)
Returns a new period plus the specified number of minutes added. |
Period |
Period.plusSeconds(int seconds)
Returns a new period plus the specified number of seconds added. |
Period |
Period.plusMillis(int millis)
Returns a new period plus the specified number of millis added. |
Period |
Period.minus(ReadablePeriod period)
Returns a new period with the specified period subtracted. |
Period |
Period.minusYears(int years)
Returns a new period with the specified number of years taken away. |
Period |
Period.minusMonths(int months)
Returns a new period minus the specified number of months taken away. |
Period |
Period.minusWeeks(int weeks)
Returns a new period minus the specified number of weeks taken away. |
Period |
Period.minusDays(int days)
Returns a new period minus the specified number of days taken away. |
Period |
Period.minusHours(int hours)
Returns a new period minus the specified number of hours taken away. |
Period |
Period.minusMinutes(int minutes)
Returns a new period minus the specified number of minutes taken away. |
Period |
Period.minusSeconds(int seconds)
Returns a new period minus the specified number of seconds taken away. |
Period |
Period.minusMillis(int millis)
Returns a new period minus the specified number of millis taken away. |
Period |
Period.normalizedStandard()
Normalizes this period using standard rules, assuming a 12 month year, 7 day week, 24 hour day, 60 minute hour and 60 second minute. |
Period |
Period.normalizedStandard(PeriodType type)
Normalizes this period using standard rules, assuming a 12 month year, 7 day week, 24 hour day, 60 minute hour and 60 second minute, providing control over how the result is split into fields. |
Uses of Period in org.joda.time.base |
Methods in org.joda.time.base that return Period | |
Period |
BaseSingleFieldPeriod.toPeriod()
Get this period as an immutable Period object. |
Period |
BaseDuration.toPeriod(PeriodType type)
Converts this duration to a Period instance using the specified period type and the ISO chronology. |
Period |
BaseDuration.toPeriod(Chronology chrono)
Converts this duration to a Period instance using the standard period type and the specified chronology. |
Period |
BaseDuration.toPeriod(PeriodType type,
Chronology chrono)
Converts this duration to a Period instance using the specified period type and chronology. |
Period |
BaseDuration.toPeriodFrom(ReadableInstant startInstant)
Converts this duration to a Period instance by adding the duration to a start instant to obtain an interval using the standard period type. |
Period |
BaseDuration.toPeriodFrom(ReadableInstant startInstant,
PeriodType type)
Converts this duration to a Period instance by adding the duration to a start instant to obtain an interval. |
Period |
BaseDuration.toPeriodTo(ReadableInstant endInstant)
Converts this duration to a Period instance by subtracting the duration from an end instant to obtain an interval using the standard period type. |
Period |
BaseDuration.toPeriodTo(ReadableInstant endInstant,
PeriodType type)
Converts this duration to a Period instance by subtracting the duration from an end instant to obtain an interval using the standard period type. |
Period |
AbstractPeriod.toPeriod()
Get this period as an immutable Period object. |
Period |
AbstractInterval.toPeriod()
Converts the duration of the interval to a Period using the
All period type. |
Period |
AbstractInterval.toPeriod(PeriodType type)
Converts the duration of the interval to a Period using the
specified period type. |
Period |
AbstractDuration.toPeriod()
Converts this duration to a Period instance using the standard period type and the ISO chronology. |
Uses of Period in org.joda.time.format |
Methods in org.joda.time.format that return Period | |
Period |
PeriodFormatter.parsePeriod(String text)
Parses a period from the given text, returning a new Period. |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |