public abstract class BaseDuration extends Object implements Comparable
Base class for date and time durations.
Modifiers | Name | Description |
---|---|---|
static class |
BaseDuration.From |
Constructor and description |
---|
protected BaseDuration
(int years, int months, int days, int hours, int minutes, int seconds, int millis) |
protected BaseDuration
(int days, int hours, int minutes, int seconds, int millis) |
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() |
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.