code: public Granularity getGranularity() {
          Interval interval = getInterval();
          if (interval != null) {
              return interval.getStartGranularity();
          } else {
              return null;
          }
      }
docs: Returns the granularity of this parameter's timestamp.
  
  @return a {@link Granularity} object.