Package groovy.time

Class DatumDependentDuration

java.lang.Object
groovy.time.BaseDuration
groovy.time.DatumDependentDuration
All Implemented Interfaces:
Comparable<BaseDuration>
Direct Known Subclasses:
TimeDatumDependentDuration

@Deprecated public class DatumDependentDuration extends BaseDuration
Deprecated.
Superseded by org.apache.groovy.dateutil.DatumDependentDuration (the dequirked java.util.Date flavor) or java.time.Period. This legacy class is retained, unchanged, for backward compatibility.
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 Details

    • DatumDependentDuration

      public DatumDependentDuration(int years, int months, int days, int hours, int minutes, int seconds, int millis)
      Deprecated.
      Creates a datum-dependent duration.
      Parameters:
      years - the year component
      months - the month component
      days - the day component
      hours - the hour component
      minutes - the minute component
      seconds - the second component
      millis - the millisecond component
  • Method Details