Calendar cal = Calendar.getInstance();
cal.set(Calendar.HOUR, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.MILLISECOND, 0);
System.out.println("1111111111111"+cal.getTimeInMillis());
System.out.println("2222222222222"+System.currentTimeMillis());
System.out.println("3333333333333"+(cal.getTimeInMillis() - System.currentTimeMillis()));
之前这样用, 发现不能识别0点是哪天, 比如现在时间是00:12
那么会识别为今天的00:00 时间差就是负的 , 怎么得到明天凌晨00:00的毫秒差