code: public static long parseTimestampFromUIDString(String s, final int start, final int end) {
          long ret = 0;
          for (int i = start; i < end && i < start + 9; i++) {
              ret <<= 5;
              char c = s.charAt(i);
              if (c >= '0' && c <= '9') {
                  ret |= c - '0';
              } else if (c >= 'a' && c <= 'v') {
                  ret |= c - 'a' + 10;
              } else if (c >= 'A' && c <= 'V') {
                  ret |= c - 'A' + 10;
              } else {
                  throw new IllegalArgumentException(s.substring(start, end) + " is not a valid UID!");
              }
          }
          return ret;
      }
docs: Parses out the timestamp portion of the uid Strings used in the logrepo