private static boolean isIllegalDate(int y, int m, int d) {
    int[] monthOf31Days = new int[] {1, 3, 5, 7, 8, 10, 12};
    if (y < 0 || y > 9999 || m < 1 || m > 12 || d < 1 || d > 31) {
      return false;
    }
    if (m == 2 && d > 28) {
      if (!(isLeapYear(y) && d == 29)) {
        return false;
      }
    }
    if (d == 31) {
      for (int i : monthOf31Days) {
        if (i == m) {
          return true;
        }
      }
      return false;
    }
    return true;
  }
Returns the value of the argument as an unsigned integer in seconds since '1970-01-01 00:00:00'
UTC.
amoro-format-mixed/amoro-mixed-flink/amoro-mixed-flink-common/src/main/java/org/apache/amoro/flink/util/DateTimeUtils.java