level 3
知道开始时间,比如08:35:30,持续时间00:17:25,如何求结束时间,第一次遇到这问题,没想出啥好方法来。
2018年01月03日 11点01分
1
level 7
第一个转换为毫秒,第二个算为毫秒,一加得到和再转换过来完事儿。
2018年01月03日 16点01分
4
好的,谢谢
2018年01月04日 02点01分
level 7
Calendar c = Calendar.getInstance();
c.setTime(new SimpleDateFormat("HHmmss").parse("083530"));
c.add(Calendar.HOUR, 17);
c.add(Calendar.MINUTE, 25);
return c.getTime();
2018年01月03日 16点01分
7
谢谢
2018年01月04日 02点01分