code: @SuppressWarnings("unchecked")
      @Override
      public <R> R query(TemporalQuery<R> query) {
          if (query == TemporalQueries.chronology()) {
              return (R) getChronology();
          } else if (query == TemporalQueries.precision()) {
              return (R) ChronoUnit.DAYS;
          } else if (query == TemporalQueries.localDate()) {
              return (R) LocalDate.ofEpochDay(toEpochDay());
          } else if (query == TemporalQueries.localTime() || query == TemporalQueries.zone() ||
                  query == TemporalQueries.zoneId() || query == TemporalQueries.offset()) {
              return null;
          }
          return super.query(query);
      }
docs: -----------------------------------------------------------------------