code: public static final String printDuration(Duration value)
     {
        return value == null ? null : Double.toString(value.getDuration());
     }
docs: Print a duration value.
  
  @param value Duration instance
  @return string representation of a duration