String time1 = "16:00:00";String time2 = "19:00:00";SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");Date date1 = format.parse(time1);Date date2 = format.parse(time2);long difference = date2.getTime() - date1.getTime();
欢迎分享,转载请注明来源:内存溢出
String time1 = "16:00:00";String time2 = "19:00:00";SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");Date date1 = format.parse(time1);Date date2 = format.parse(time2);long difference = date2.getTime() - date1.getTime();
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)