DatumDependentDuration represents durations whose length in milliseconds cannot be determined without knowing the datum point.
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)
Constructor and description |
---|
DatumDependentDuration
(int years, int months, int days, int hours, int minutes, int seconds, int millis) |
Type | Name and description |
---|---|
Date |
getAgo() |
From |
getFrom() |
int |
getMonths() |
int |
getYears() |
DatumDependentDuration |
minus(DatumDependentDuration rhs) |
DatumDependentDuration |
minus(Duration rhs) |
DatumDependentDuration |
plus(DatumDependentDuration rhs) |
DatumDependentDuration |
plus(TimeDatumDependentDuration rhs) |
DatumDependentDuration |
plus(Duration rhs) |
DatumDependentDuration |
plus(TimeDuration rhs) |
long |
toMilliseconds() @see groovy.time.BaseDuration#toMilliseconds() |
Copyright © 2003-2014 The Codehaus. All rights reserved.