code: public static final String printDuration(Duration duration)
     {
        String result = null;
        if (duration != null)
        {
           result = duration.getDuration() + " " + printTimeUnits(duration.getUnits());
        }
        return result;
     }
docs: Retrieve a duration in the form required by Phoenix.
  
  @param duration Duration instance
  @return formatted duration