|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Duration | |
---|---|
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. |
Uses of Duration in org.joda.time |
---|
Fields in org.joda.time declared as Duration | |
---|---|
static Duration |
Duration.ZERO
Constant representing zero millisecond duration |
Methods in org.joda.time that return Duration | |
---|---|
Duration |
Duration.minus(long amount)
Returns a new duration with this length minus that specified. |
Duration |
Duration.minus(ReadableDuration amount)
Returns a new duration with this length minus that specified. |
Duration |
Duration.plus(long amount)
Returns a new duration with this length plus that specified. |
Duration |
Duration.plus(ReadableDuration amount)
Returns a new duration with this length plus that specified. |
Duration |
ReadableInterval.toDuration()
Gets the millisecond duration of this time interval. |
Duration |
ReadableDuration.toDuration()
Get this duration as an immutable Duration object. |
Duration |
Duration.toDuration()
Get this duration as an immutable Duration object
by returning this . |
Duration |
Duration.withDurationAdded(long durationToAdd,
int scalar)
Returns a new duration with this length plus that specified multiplied by the scalar. |
Duration |
Duration.withDurationAdded(ReadableDuration durationToAdd,
int scalar)
Returns a new duration with this length plus that specified multiplied by the scalar. |
Duration |
Duration.withMillis(long duration)
Creates a new Duration instance with a different milisecond length. |
Uses of Duration in org.joda.time.base |
---|
Methods in org.joda.time.base that return Duration | |
---|---|
Duration |
AbstractInterval.toDuration()
Gets the duration of this time interval. |
Duration |
AbstractDuration.toDuration()
Get this duration as an immutable Duration object. |
Duration |
BasePeriod.toDurationFrom(ReadableInstant startInstant)
Gets the total millisecond duration of this period relative to a start instant. |
Duration |
BasePeriod.toDurationTo(ReadableInstant endInstant)
Gets the total millisecond duration of this period relative to an end instant. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |