Daylight / Overlap Gap Definitions? When to "fix" them?

  • What is the definition of daylight saving time "Overlap" and "Break"? I have a vague understanding of them, so I would like to confirm ... What does it mean to be “inside” any of them?

  • What does “fix” mean for DST Gap or DST Overlap? When does it take time to fix, and when does it not need to be fixed?

The above questions are linguistic, but I have an example of their application:

  1. When to call org.joda.time.LocalDateTime # correctDstTransition ?

    Correct date in case of overlapping DST. The created Date object is exactly the same as the date field, unless the time is invalid due to daylight mileage. In this case, the time will be set to the earliest allowable time after the break. In the case, daylight saving time is closed, an earlier moment is selected.

+1
source share
1 answer

Much of this is already explained on the DST tag wiki , but I will answer your specific questions.

What is the definition of daylight saving time "Overlap" and "Clearance"?
...
What does it mean to be “inside” any of them?

, - . "" .

  • , DST , 1:59 3:00. 2:00 2:59 " ".

  • , . , . .

, , , ( , 1 ). "" .

  • , DST , 1:59 1:00 . 1:00 1:59 , .

  • " " , , , .

  • ( ) ( ).

"" DST DST?

, , . , .

  • , 2:30 , spring -forward , . 3:30 .

  • , , , , , .

, . .

  • , , .

  • , , ( ). , . , , YMMV.

, ?

, , , UTC, .

, , ( ), .

, , , , .

, (UTC), , .

org.joda.time.LocalDateTime#correctDstTransition?

. private Joda-time .

+3

Source: https://habr.com/ru/post/1683823/


All Articles