public class DatumDependentDuration extends BaseDuration
BaseDuration.From
Constructor and Description |
---|
DatumDependentDuration(int years,
int months,
int days,
int hours,
int minutes,
int seconds,
int millis) |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAgo() |
BaseDuration.From |
getFrom() |
int |
getMonths() |
int |
getYears() |
DatumDependentDuration |
minus(DatumDependentDuration rhs) |
DatumDependentDuration |
minus(Duration rhs) |
DatumDependentDuration |
plus(DatumDependentDuration rhs) |
DatumDependentDuration |
plus(Duration rhs) |
DatumDependentDuration |
plus(TimeDatumDependentDuration rhs) |
DatumDependentDuration |
plus(TimeDuration rhs) |
long |
toMilliseconds() |
compareTo, getDays, getHours, getMillis, getMinutes, getSeconds, plus, toString
public DatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)
public int getMonths()
getMonths
in class BaseDuration
public int getYears()
getYears
in class BaseDuration
public DatumDependentDuration plus(DatumDependentDuration rhs)
public DatumDependentDuration plus(TimeDatumDependentDuration rhs)
public DatumDependentDuration plus(Duration rhs)
public DatumDependentDuration plus(TimeDuration rhs)
public DatumDependentDuration minus(DatumDependentDuration rhs)
public DatumDependentDuration minus(Duration rhs)
public long toMilliseconds()
public java.util.Date getAgo()
getAgo
in class BaseDuration
public BaseDuration.From getFrom()
getFrom
in class BaseDuration