code: public static final Duration parseDuration(String value)
     {
        Duration result = null;
        if (value != null)
        {
           int split = value.indexOf(' ');
           if (split != -1)
           {
              double durationValue = Double.parseDouble(value.substring(0, split));
              TimeUnit durationUnits = parseTimeUnits(value.substring(split + 1));
  
              result = Duration.getInstance(durationValue, durationUnits);
  
           }
        }
        return result;
     }
docs: Convert the Phoenix representation of a duration into a Duration instance.
  
  @param value Phoenix duration
  @return Duration instance