// 定义校验规则
Pattern patRule = Pattern.compile("判断规则");
// 校验结果
patRule.matcher("判断的对象").matches(); 1、秒钟、分钟、小时判断规则
String smh = "([0-9]|[1-5][0-9]|59)"; 2、日校验规则
String dayRule= "([1-9]|[1-2][2-9]|[1-3][0-1])"; 3、月校验规则
String monthRule = "([1-9]|[1][0-2])"; 4、星期校验规则
String weekRule = "([1-7])"; 5、年份校验规则
String yearRule = "([1-9][0-9][0-9][0-9])";