How to get correct number of hours between Joda dates?

后端 未结 3 418
时光说笑
时光说笑 2021-01-22 02:59

I want to get all the Daylight Saving Time (DST) hours between two dates.

This is my example code:

public static void main(String[] args) {

    Date sta         


        
3条回答
  •  不思量自难忘°
    2021-01-22 03:33

    I can't figure this out either (but in Joda time?), but you could work-around. The difference in millisecond times divided by 3600000L should be the accurate number of hours. I tried and got 743.

提交回复
热议问题