Calendar c = Calendar.getInstance();
c.set(2017, 11, 5, 0, 0, 0);
System.out.println(c.getTimeInMillis());
1512403200742
此种方式生成后,毫秒数不为0
Calendar c = Calendar.getInstance();
c.set(2017, 11, 5, 0, 0, 0);
c.set(Calendar.MILLISECOND, 0);
System.out.println(c.getTimeInMillis());
此种方式生成后,毫秒数为0
1512403200000