public class RelativeTime extends Object
Constructor and Description |
---|
RelativeTime(int value,
TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
long |
getTimeRelativeTo(long time)
Returns the time in milliseconds relative to the specified time.
|
String |
getUnit()
The unit of time.
|
int |
getValue()
The time's value.
|
public RelativeTime(int value, TimeUnit unit)
public int getValue()
public String getUnit()
public long getTimeRelativeTo(long time)
time
.time
- time to calculate the relative time.Copyright © 2014. All rights reserved.