java计时器
//用于计时,要求xx秒后开始发送短信,短信之间间隔xx秒 public static Date dateOperateBySecond(Date date,int second){ Calendar calendar = Calendar.getInstance(); calendar.setTime(date == null ? new Date() : date); calendar.add(Calendar.SECOND, second); return calendar.getTime(); }