public abstract class BaseDuration extends Object
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 |
---|---|---|
|
int |
compareTo(BaseDuration otherDuration) |
|
Date |
getAgo() |
|
int |
getDays() |
|
BaseDuration.From |
getFrom() |
|
int |
getHours() |
|
int |
getMillis() |
|
int |
getMinutes() |
|
int |
getMonths() |
|
int |
getSeconds() |
|
int |
getYears() |
|
Date |
plus(Date date) |
|
long |
toMilliseconds() |
|
String |
toString() |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.