Class BaseDuration.From

java.lang.Object
org.apache.groovy.dateutil.BaseDuration.From
Enclosing class:
BaseDuration

public abstract static class BaseDuration.From extends Object
Helper for computing dates relative to the current time.
  • Constructor Details

    • From

      public From()
  • Method Details

    • getNow

      public abstract Date getNow()
      Returns the date produced by applying the duration to the current time.
      Returns:
      that date, with the time of day preserved
    • getToday

      public Date getToday()
      Returns getNow() unchanged, so the time of day is kept.
      Returns:
      the same date getNow() produces