Package groovy.time
Class DatumDependentDuration
java.lang.Object
groovy.time.BaseDuration
groovy.time.DatumDependentDuration
- All Implemented Interfaces:
 Comparable<BaseDuration>
- Direct Known Subclasses:
 TimeDatumDependentDuration
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)
- 
Nested Class Summary
Nested classes/interfaces inherited from class groovy.time.BaseDuration
BaseDuration.From - 
Field Summary
 - 
Constructor Summary
ConstructorsConstructorDescriptionDatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)  - 
Method Summary
Modifier and TypeMethodDescriptiongetAgo()getFrom()intintgetYears()plus(TimeDuration rhs) longMethods inherited from class groovy.time.BaseDuration
compareTo, getDays, getHours, getMillis, getMinutes, getSeconds, plus, toString 
- 
Constructor Details
- 
DatumDependentDuration
public DatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)  
 - 
 - 
Method Details
- 
getMonths
public int getMonths()- Overrides:
 getMonthsin classBaseDuration
 - 
getYears
public int getYears()- Overrides:
 getYearsin classBaseDuration
 - 
plus
 - 
plus
 - 
plus
 - 
plus
 - 
minus
 - 
minus
 - 
toMilliseconds
public long toMilliseconds() - 
getAgo
- Specified by:
 getAgoin classBaseDuration
 - 
getFrom
- Specified by:
 getFromin classBaseDuration
 
 -