Example usage for Java org.joda.time Interval fields, constructors, methods, implement or subclass
The text is from its open source code.
Interval(Object interval) Constructs a time interval by converting or copying from another object. | |
Interval(long startInstant, long endInstant) Constructs an interval from a start and end instant with the ISO default chronology in the default time zone. | |
Interval(ReadableInstant start, ReadableInstant end) Constructs an interval from a start and end instant. | |
Interval(ReadableInstant start, ReadableDuration duration) Constructs an interval from a start instant and a duration. | |
Interval(ReadableDuration duration, ReadableInstant end) Constructs an interval from a millisecond duration and an end instant. | |
Interval(ReadableInstant start, ReadablePeriod period) Constructs an interval from a start instant and a time period. | |
Interval(ReadablePeriod period, ReadableInstant end) Constructs an interval from a time period and an end instant. | |
Interval(Object interval, Chronology chronology) Constructs a time interval by converting or copying from another object, overriding the chronology. | |
Interval(long startInstant, long endInstant, DateTimeZone zone) Constructs an interval from a start and end instant with the ISO default chronology in the specified time zone. | |
Interval(long startInstant, long endInstant, Chronology chronology) Constructs an interval from a start and end instant with the specified chronology. |
boolean | abuts(ReadableInterval interval) Does this interval abut with the interval specified. |
boolean | contains(long millisInstant) Does this time interval contain the specified millisecond instant. |
boolean | containsNow() Does this time interval contain the current instant. |
boolean | equals(Object readableInterval) Compares this object with the specified object for equality based on start and end millis plus the chronology. |
Interval | gap(ReadableInterval interval) Gets the gap between this interval and another interval. |
Chronology | getChronology() Gets the chronology of this interval. |
DateTime | getEnd() Gets the end of this time interval, which is exclusive, as a DateTime. |
long | getEndMillis() Gets the end of this time interval which is exclusive. |
DateTime | getStart() Gets the start of this time interval, which is inclusive, as a DateTime. |
long | getStartMillis() Gets the start of this time interval which is inclusive. |
boolean | isAfter(long millisInstant) Is this time interval after the specified millisecond instant. |
boolean | isBefore(long millisInstant) Is this time interval before the specified millisecond instant. |
boolean | isEqual(ReadableInterval other) Is this interval equal to the specified interval ignoring the chronology. |
Interval | overlap(ReadableInterval interval) Gets the overlap between this interval and another interval. |
boolean | overlaps(ReadableInterval interval) Does this time interval overlap the specified time interval. |
Interval | parse(String str) Parses an Interval from the specified string. |
Duration | toDuration() Gets the duration of this time interval. |
long | toDurationMillis() Gets the duration of this time interval in milliseconds. |
Period | toPeriod() Converts the duration of the interval to a Period using the All period type. |
Period | toPeriod(PeriodType type) Converts the duration of the interval to a Period using the specified period type. |
String | toString() Output a string in ISO8601 interval format. |
Interval | withEnd(ReadableInstant end) Creates a new interval with the specified end instant. |
Interval | withStart(ReadableInstant start) Creates a new interval with the specified start instant. |