public static Integer getDateDifferenceToMin(Date endDate, Date startDate) {
//除以1000是为了转换成秒
long between=(endDate.getTime()-startDate.getTime())/1000;
long min=between/60;
return (int)min;
}
public static Integer getDateDifferenceToMin(Date endDate, Date startDate) {
//除以1000是为了转换成秒
long between=(endDate.getTime()-startDate.getTime())/1000;
long min=between/60;
return (int)min;
}