| Package | Description |
|---|---|
| net.time4j.range |
Interval support.
|
| Modifier and Type | Field and Description |
|---|---|
static TimestampInterval |
TimestampInterval.ALWAYS
Constant for a timestamp interval from infinite past to infinite future.
|
| Modifier and Type | Method and Description |
|---|---|
static TimestampInterval |
TimestampInterval.between(LocalDateTime start,
LocalDateTime end)
Creates a finite half-open interval between given time points.
|
static TimestampInterval |
TimestampInterval.between(PlainTimestamp start,
PlainTimestamp end)
Creates a finite half-open interval between given time points.
|
static TimestampInterval |
TimestampInterval.from(ChronoInterval<PlainTimestamp> interval)
Converts an arbitrary timestamp interval to an interval of this type.
|
TimestampInterval |
TimestampInterval.move(long amount,
IsoUnit unit)
Moves this interval along the time axis by given units.
|
TimestampInterval |
ClockInterval.on(PlainDate date)
Creates a timestamp interval for given calendar date based on this clock interval.
|
static TimestampInterval |
TimestampInterval.parse(CharSequence text,
ChronoParser<PlainTimestamp> parser,
BracketPolicy policy)
Interpretes given text as interval.
|
static TimestampInterval |
TimestampInterval.parse(CharSequence text,
ChronoParser<PlainTimestamp> startFormat,
char separator,
ChronoParser<PlainTimestamp> endFormat,
BracketPolicy policy,
ParseLog status)
Interpretes given text as interval.
|
static TimestampInterval |
TimestampInterval.parse(String text,
ChronoParser<PlainTimestamp> parser)
Interpretes given text as interval using a localized interval pattern.
|
static TimestampInterval |
TimestampInterval.parse(String text,
ChronoParser<PlainTimestamp> parser,
String intervalPattern)
Interpretes given text as interval using given interval pattern.
|
static TimestampInterval |
TimestampInterval.parseISO(String text)
Interpretes given ISO-conforming text as interval.
|
static TimestampInterval |
TimestampInterval.since(LocalDateTime start)
Creates an infinite half-open interval since given start
timestamp.
|
static TimestampInterval |
TimestampInterval.since(PlainTimestamp start)
Creates an infinite half-open interval since given start
timestamp.
|
TimestampInterval |
DateInterval.toFullDays()
Converts this instance to a timestamp interval with
dates from midnight to midnight.
|
TimestampInterval |
MomentInterval.toLocalInterval()
Converts this instance to a local timestamp interval in the system
timezone.
|
TimestampInterval |
MomentInterval.toZonalInterval(String tzid)
Converts this instance to a zonal timestamp interval
in given timezone.
|
TimestampInterval |
MomentInterval.toZonalInterval(TZID tzid)
Converts this instance to a zonal timestamp interval
in given timezone.
|
static TimestampInterval |
TimestampInterval.until(LocalDateTime end)
Creates an infinite open interval until given end timestamp.
|
static TimestampInterval |
TimestampInterval.until(PlainTimestamp end)
Creates an infinite open interval until given end timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
static IsoRecurrence<TimestampInterval> |
IsoRecurrence.of(int count,
Duration<?> duration,
PlainTimestamp end)
Creates a recurrent backward sequence of timestamp intervals having given duration.
|
static IsoRecurrence<TimestampInterval> |
IsoRecurrence.of(int count,
PlainTimestamp start,
Duration<?> duration)
Creates a recurrent sequence of timestamp intervals having given duration.
|
static IsoRecurrence<TimestampInterval> |
IsoRecurrence.of(int count,
PlainTimestamp start,
PlainTimestamp end)
Creates a recurrent sequence of timestamp intervals having the duration
of first timestamp interval in years, months, days, hours, minutes, seconds and nanoseconds.
|
static IsoRecurrence<TimestampInterval> |
IsoRecurrence.parseTimestampIntervals(String iso)
Parses a string like "R5/2016-04-01T10:45/2016-04-30T23:59"
to a sequence of recurrent timestamp intervals.
|
Stream<TimestampInterval> |
TimestampInterval.streamPartitioned(DayPartitionRule rule)
Creates a partitioning stream of timestamp intervals where every day of this interval is partitioned
according to given partitioning rule.
|
Stream<TimestampInterval> |
DateInterval.streamPartitioned(DayPartitionRule rule)
Creates a partitioning stream of timestamp intervals where every day of this interval is partitioned
according to given partitioning rule.
|
| Modifier and Type | Method and Description |
|---|---|
static IntervalRelation |
IntervalRelation.between(TimestampInterval a,
TimestampInterval b)
Determines the relation between given intervals.
|
boolean |
IntervalRelation.matches(TimestampInterval a,
TimestampInterval b)
Does this relation match the relation between given intervals?
|
Copyright © 2014–2021. All rights reserved.