方法一:
LocalDateTime beginTime = LocalDateTime.now();
Long opetime = Duration.between(between,LocalDateTime.now()).toMillis();
方法二:
Long beginTime = new Date().getTime();
Long opetime =new Date().getTime()-beginTime;
方法一:
LocalDateTime beginTime = LocalDateTime.now();
Long opetime = Duration.between(between,LocalDateTime.now()).toMillis();
方法二:
Long beginTime = new Date().getTime();
Long opetime =new Date().getTime()-beginTime;