public class RelativeTimestamp
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RelativeTimestamp.TimeType
It represents a unit of time.
|
| Modifier and Type | Field and Description |
|---|---|
static long |
HOUR |
static long |
MINUTE |
static long |
SECOND |
| Constructor and Description |
|---|
RelativeTimestamp(long relativeTimeDifference,
RelativeTimestamp.TimeType type) |
| Modifier and Type | Method and Description |
|---|---|
long |
getRelativeTimeDifference() |
RelativeTimestamp.TimeType |
getTimeType() |
public static final long SECOND
public static final long MINUTE
public static final long HOUR
public RelativeTimestamp(long relativeTimeDifference,
RelativeTimestamp.TimeType type)
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionpublic long getRelativeTimeDifference()
public RelativeTimestamp.TimeType getTimeType()