public class PointInTime
extends java.lang.Object
Constructor and Description |
---|
PointInTime(long epochTimestampInMilliseconds) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
asDate()
Returns this point in time as date.
|
static PointInTime |
create(java.util.Date date) |
static PointInTime |
create(long epochTimestampInMilliseconds) |
Duration |
getDurationUntilReached()
Returns the remaining time until the point in time has been reached as duration.
|
long |
getEpochTimestamp()
Returns the point in time in milliseconds since midnight, January 1, 1970 UTC.
|
long |
getRemainingTime()
Returns the remaining time in milliseconds until this point in time is reached.
|
boolean |
isReached()
Returns whether or not this point in time has been reached.
|
java.lang.String |
toString() |
public static PointInTime create(long epochTimestampInMilliseconds)
public static PointInTime create(java.util.Date date)
public long getEpochTimestamp()
public long getRemainingTime()
public Duration getDurationUntilReached()
public boolean isReached()
public java.util.Date asDate()
public java.lang.String toString()
toString
in class java.lang.Object