docs: public static int parseSeconds(String value, int defaultValue) {
      try {
        long seconds = Long.parseLong(value);
        if (seconds > Integer.MAX_VALUE) {
          return Integer.MAX_VALUE;
        } else if (seconds < 0) {
          return 0;
        } else {
          return (int) seconds;
        }
      } catch (NumberFormatException e) {
        return defaultValue;
      }
    }