public class DatumDependentDuration extends BaseDuration
I don't know how many days in a year unless I know if it's a leap year or not.
I don't know how many days in a month unless I know the name of the month (and if it's a leap year if the month is February)
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