public static void main(String[] args) {
Date stime= DateUtil.parse("2020-05-24 19:10:10", "yyyy-MM-dd HH:mm:ss");
long x= DateUtil.between(stime,new Date(), DateUnit.DAY);//两个时间间隔几天
System.out.println(x);
for (int i = 0; i < 10; i++) {
System.out.println(stime+"======"+(DateUtil.dayOfWeek(stime)-1));//日期是周几,0-6,周日是0
stime=DateUtil.offsetDay(stime,1);//时间增加1天
}
}