Package | Description |
---|---|
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.field |
Implementation package providing abstract and standard field classes.
|
Modifier and Type | Method and Description |
---|---|
Interval |
Interval.gap(ReadableInterval interval)
Gets the gap between this interval and another interval.
|
Interval |
Interval.overlap(ReadableInterval interval)
Gets the overlap between this interval and another interval.
|
static Interval |
Interval.parse(String str)
Parses an
Interval from the specified string. |
static Interval |
Interval.parseWithOffset(String str)
Parses an
Interval from the specified string, using any offset it contains. |
Interval |
Interval.toInterval()
Get this interval as an immutable
Interval object
by returning this . |
Interval |
YearMonthDay.toInterval()
Deprecated.
Converts this object to an Interval representing the whole day
in the default time zone.
|
Interval |
YearMonth.toInterval()
Converts this object to an Interval representing the whole month.
|
Interval |
DateMidnight.toInterval()
Deprecated.
Converts this object to an
Interval encompassing
the whole of this day. |
Interval |
ReadableInterval.toInterval()
Get this interval as an immutable
Interval object. |
Interval |
LocalDate.toInterval()
Converts this object to an Interval representing the whole day
in the default time zone.
|
Interval |
YearMonthDay.toInterval(DateTimeZone zone)
Deprecated.
Converts this object to an Interval representing the whole day.
|
Interval |
YearMonth.toInterval(DateTimeZone zone)
Converts this object to an Interval representing the whole month.
|
Interval |
LocalDate.toInterval(DateTimeZone zone)
Converts this object to an Interval representing the whole day.
|
Interval |
Interval.withChronology(Chronology chronology)
Creates a new interval with the same start and end, but a different chronology.
|
Interval |
Interval.withDurationAfterStart(ReadableDuration duration)
Creates a new interval with the specified duration after the start instant.
|
Interval |
Interval.withDurationBeforeEnd(ReadableDuration duration)
Creates a new interval with the specified duration before the end instant.
|
Interval |
Interval.withEnd(ReadableInstant end)
Creates a new interval with the specified end instant.
|
Interval |
Interval.withEndMillis(long endInstant)
Creates a new interval with the specified end millisecond instant.
|
Interval |
Interval.withPeriodAfterStart(ReadablePeriod period)
Creates a new interval with the specified period after the start instant.
|
Interval |
Interval.withPeriodBeforeEnd(ReadablePeriod period)
Creates a new interval with the specified period before the end instant.
|
Interval |
Interval.withStart(ReadableInstant start)
Creates a new interval with the specified start instant.
|
Interval |
Interval.withStartMillis(long startInstant)
Creates a new interval with the specified start millisecond instant.
|
Modifier and Type | Method and Description |
---|---|
Interval |
AbstractInterval.toInterval()
Get this interval as an immutable
Interval object. |
Interval |
BaseDuration.toIntervalFrom(ReadableInstant startInstant)
Converts this duration to an Interval starting at the specified instant.
|
Interval |
BaseDuration.toIntervalTo(ReadableInstant endInstant)
Converts this duration to an Interval ending at the specified instant.
|
Modifier and Type | Method and Description |
---|---|
Interval |
AbstractReadableInstantFieldProperty.toInterval()
Returns the interval that represents the range of the minimum
and maximum values of this field.
|
Copyright © 2002–2024 Joda.org. All rights reserved.