1.计算时间差,精确到秒    出参类型为long

Duration.between(startTime,endTime)

.toDays()   //转为天

.toHours()  //转为小时

.toMinutes()  //转为分钟

.toMillis()//毫秒

2.

相关文章:

  • 2022-12-23
  • 2021-11-24
  • 2021-11-14
  • 2021-11-24
猜你喜欢
  • 2021-12-09
  • 2021-06-08
  • 2022-12-23
  • 2021-09-27
  • 2021-10-19
  • 2021-12-15
相关资源
相似解决方案