public static void main(String[] args) {
String a=addtime("2018-2-8 16:17","110");
System.out.println(a);
}
Calendar 实现时间+ 分钟
public static String addtime(String timeStr,String addnumber){
String str=null;
try {
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm");
Date date = df.parse(timeStr);
//时间累计
Calendar gc =new GregorianCalendar();
gc.setTime(date);
gc.add(GregorianCalendar.MINUTE,Integer.parseInt(addnumber));
str= df.format(gc.getTime());
}catch (Exception e){
}
return str;
}