Package groovy.time

Class BaseDuration.From

java.lang.Object
groovy.time.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 computed date relative to now.
      Returns:
      the computed date
    • getToday

      public Date getToday()
      Returns the computed date relative to today.
      Returns:
      the computed date