code: public String applies(ZonedDateTime d) {
      long epoch = d.toEpochSecond();
      for (int i = 0; i < size; i++) {
        Entry entry = entries[i];
        if (entry.from == -1) {
          if (entry.to == -1 || epoch < entry.to) {
            return entry.metazoneId;
          }
        } else if (entry.to == -1) {
          if (entry.from <= epoch) {
            return entry.metazoneId;
          }
        } else if (entry.from <= epoch && epoch < entry.to) {
          return entry.metazoneId;
        }
      }
      return null;
    }
docs: Find the metazone that applies for a given timestamp.