Package: groovy.time

## [Java] Class DatumDependentDuration

- groovy.time.DatumDependentDuration

- 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)

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class BaseDuration` | `days, hours, millis, minutes, months, seconds, years`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `DatumDependentDuration (int years, int months, int days, int hours, int minutes, int seconds, int millis)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `Date` | `getAgo()`
    `` | `BaseDuration.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()

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class BaseDuration` | `compareTo, getAgo, getDays, getFrom, getHours, getMillis, getMinutes, getMonths, getSeconds, getYears, plus, toMilliseconds, toString`

- - ### Constructor Detail

    - #### public DatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)

  - ### Method Detail

    - #### public Date getAgo()

    - #### public BaseDuration.From getFrom()

    - #### public int getMonths()

    - #### public int getYears()

    - #### public DatumDependentDuration minus(DatumDependentDuration rhs)

    - #### public DatumDependentDuration minus(Duration rhs)

    - #### public DatumDependentDuration plus(DatumDependentDuration rhs)

    - #### public DatumDependentDuration plus(TimeDatumDependentDuration rhs)

    - #### public DatumDependentDuration plus(Duration rhs)

    - #### public DatumDependentDuration plus(TimeDuration rhs)

    - #### public long toMilliseconds()

      See Also: