SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
dateDifference=(df.parse(endTime.toString())).getTime()-(df.parse(startTime.toString())).getTime();
day=dateDifference/(24*60*60*1000);hour=(dateDifference/(60*60*1000)-day*24);
min=((dateDifference/(60*1000))-day*24*60-hour*60);
s=(dateDifference/1000-day*24*60*60-hour*60*60-min*60);
if(day>0){
consuming=day+"天"+hour+"小时";
}else if(hour>0){
consuming=hour+"小时"+min+"分";
}else{
consuming=min+"分"+s+"秒";
}