@Test public void getFinalFireTime() { try { System.out.println(MainUtils.dateFormate.format(CronTools.getFinalFireTime("0 0/40 0/1 * * ?",new Date()))); } catch (ParseException e) { e.printStackTrace(); } }
public static Date getFinalFireTime(String crontabExp, Date date) throws ParseException { CronExpression expression = new CronExpression(crontabExp); return expression.getNextValidTimeAfter(date != null ? date : new Date()); }
CronTools { public static Date getFinalFireTime(String crontabExp, Date date) throws ParseException { CronExpression expression = new CronExpression(crontabExp); return expression.getNextValidTimeAfter(date != null ? date : new Date()); } }
CronTools { public static Date getFinalFireTime(String crontabExp, Date date) throws ParseException { CronExpression expression = new CronExpression(crontabExp); return expression.getNextValidTimeAfter(date != null ? date : new Date()); }  }
CronTools { public static Date getFinalFireTime(String crontabExp, Date date) throws ParseException { CronExpression expression = new CronExpression(crontabExp); return expression.getNextValidTimeAfter(date != null ? date : new Date()); }  static CronExpression getFireTime(String crontabExp); static Date getFinalFireTime(String crontabExp, Date date); }
CronTools { public static Date getFinalFireTime(String crontabExp, Date date) throws ParseException { CronExpression expression = new CronExpression(crontabExp); return expression.getNextValidTimeAfter(date != null ? date : new Date()); }  static CronExpression getFireTime(String crontabExp); static Date getFinalFireTime(String crontabExp, Date date);  }