public interface TimePoint
TimePoint tp;
Date timeBase = new Date(tp.getAbsoluteTime().getTime()-tp.getRelativeSeconds()*1000)
Date
Modifier and Type | Field and Description |
---|---|
static TimePoint |
NEVER
This constant stands for a special case of timepoint which can never occur.
getRelativeSeconds() returns Long.MAX_VALUE and
getAbsoluteTime() returns new Date(Long.MAX_VALUE) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAbsoluteTime()
Returns the absolute time of the time point.
|
long |
getRelativeSeconds()
Returns the number of seconds from the time base.
|
static final TimePoint NEVER
getRelativeSeconds()
returns Long.MAX_VALUE
and
getAbsoluteTime()
returns new Date(Long.MAX_VALUE)
Long
@NotNull java.util.Date getAbsoluteTime()
long getRelativeSeconds()