Uses of Class
org.joda.time.Interval
Packages that use Interval
Package
Description
Provides support for dates, times, time zones, durations, intervals, and
partials.
Implementation package providing abstract and base time classes.
Implementation package providing abstract and standard field classes.
-
Uses of Interval in org.joda.time
Methods in org.joda.time that return IntervalModifier and TypeMethodDescriptionInterval.gap
(ReadableInterval interval) Gets the gap between this interval and another interval.Interval.overlap
(ReadableInterval interval) Gets the overlap between this interval and another interval.static Interval
Parses anInterval
from the specified string.static Interval
Interval.parseWithOffset
(String str) Parses anInterval
from the specified string, using any offset it contains.DateMidnight.toInterval()
Deprecated.Converts this object to anInterval
encompassing the whole of this day.Interval.toInterval()
Get this interval as an immutableInterval
object by returningthis
.LocalDate.toInterval()
Converts this object to an Interval representing the whole day in the default time zone.LocalDate.toInterval
(DateTimeZone zone) Converts this object to an Interval representing the whole day.ReadableInterval.toInterval()
Get this interval as an immutableInterval
object.YearMonth.toInterval()
Converts this object to an Interval representing the whole month.YearMonth.toInterval
(DateTimeZone zone) Converts this object to an Interval representing the whole month.YearMonthDay.toInterval()
Deprecated.Converts this object to an Interval representing the whole day in the default time zone.YearMonthDay.toInterval
(DateTimeZone zone) Deprecated.Converts this object to an Interval representing the whole day.Interval.withChronology
(Chronology chronology) Creates a new interval with the same start and end, but a different chronology.Interval.withDurationAfterStart
(ReadableDuration duration) Creates a new interval with the specified duration after the start instant.Interval.withDurationBeforeEnd
(ReadableDuration duration) Creates a new interval with the specified duration before the end instant.Interval.withEnd
(ReadableInstant end) Creates a new interval with the specified end instant.Interval.withEndMillis
(long endInstant) Creates a new interval with the specified end millisecond instant.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.Interval.withStart
(ReadableInstant start) Creates a new interval with the specified start instant.Interval.withStartMillis
(long startInstant) Creates a new interval with the specified start millisecond instant. -
Uses of Interval in org.joda.time.base
Methods in org.joda.time.base that return IntervalModifier and TypeMethodDescriptionAbstractInterval.toInterval()
Get this interval as an immutableInterval
object.BaseDuration.toIntervalFrom
(ReadableInstant startInstant) Converts this duration to an Interval starting at the specified instant.BaseDuration.toIntervalTo
(ReadableInstant endInstant) Converts this duration to an Interval ending at the specified instant. -
Uses of Interval in org.joda.time.field
Methods in org.joda.time.field that return IntervalModifier and TypeMethodDescriptionAbstractReadableInstantFieldProperty.toInterval()
Returns the interval that represents the range of the minimum and maximum values of this field.