code: public String format(Date ref, Date then)
      {
          return prettyTime.format(DurationHelper.calculateDuration(ref, then, prettyTime.getUnits()));
      }
docs: Convenience format method.
  
  @param ref
  The date of reference.
  @param then
  The future date.
  @return a relative format date as text representation