public abstract class BaseDuration extends Object implements Comparable
Base class for date and time durations.
Modifiers | Name | Description |
---|---|---|
static class |
BaseDuration.From |
Type Params | Return Type | Name and description |
---|---|---|
|
public int |
compareTo(BaseDuration otherDuration) |
|
public abstract Date |
getAgo() |
|
public int |
getDays() |
|
public abstract BaseDuration.From |
getFrom() |
|
public int |
getHours() |
|
public int |
getMillis() |
|
public int |
getMinutes() |
|
public int |
getMonths() |
|
public int |
getSeconds() |
|
public int |
getYears() |
|
public Date |
plus(Date date) |
|
public abstract long |
toMilliseconds() |
|
public String |
toString() |