关于Date类型转换成毫秒数会出现误差注
public class DateTest { public static void main(String[] args) { //获取本周一开始时间 Calendar cal = Calendar.getInstance(); cal.set(cal.get(Calendar.YEAR), cal.get(Calendar.MONDAY