public interface TimeInterval
getDurationSeconds()
is always equal to
(getEndPoint().getRelativeSeconds() - getStartPoint().getRelativeSeconds())
if the second timepoint isn't null
.
The time base for time points is specific to a particular service that returns such an interval.
The start timepoint may be infinite (see TimePoint.NEVER
).
In this case the end timepoint is always null.
TimePoint
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getDurationSeconds()
Returns the difference between the starting and ending points in seconds.
|
TimePoint |
getEndPoint()
Returns the ending point for the interval.
|
TimePoint |
getStartPoint()
Returns the starting point for the interval.
|
@NotNull TimePoint getStartPoint()
@Nullable TimePoint getEndPoint()
@Nullable java.lang.Long getDurationSeconds()