<p>Per <a href="https://en.wikipedia.org/wiki/Daylight_saving_time_by_country" rel="nofollow noreferrer">Wikipedia</a>, several countries switch to daylight savings time at midnight. Time jumps from midnight to 1:00 AM in these countries on the date of the switch to daylight savings time. Only Chile, Iran, Lebanon, Palestine, Paraguay, and Syria switch back to standard time at midnight. Time jumps from midnight to 11:00 PM in these countries on the date of the switch from daylight savings time to standard time.</p>

CC BY-SA 4.0
2021-07-06T14:51:58.313Z
2021-07-16T23:33:44.387Z
2021-07-16T23:33:44.387Z
David Hammen
<p>I am a software developer, and I am testing a DateTime converter right now. I need to see if the conversion works when a timezone is transitioning from daylight saving time to its standard time at the last possible timeframe in the transition day, i. e 23:00 to 00:00 happens twice, the former with DST on, and the latter with ST on. Is there ever such an occurrence in the future or past? Is there such a dataset I can query this specifically?</p>

CC BY-SA 4.0
2021-07-06T13:08:57.140Z
@Fred It doesn't matter where I am, I am interested in all timezones at all times the calendar exists. Your explanation is true for most European countries but the world is a bigger place. According to my findings, there are 68 past such occurrences, the latest of which is in 2010. I will send it as an answer when I have more time.
Nae
CC BY-SA 4.0
2021-07-06T19:22:35.490Z
You say `DateTime`, which makes us think .NET - if so, this is a complete aside, but consider using a library like [NodaTime](https://nodatime.org/) or [JodaTime](https://www.joda.org/joda-time/) (if Java).  It's almost certain to have thought of and covered far more corner-cases than your home-rolled solution will have.  If you really care about accurate time management across many time zones and many countries, you really can't beat a library (unless this component development is purely an academic exercise you're taking on for its own merits).
J...
<time>
Is there any DST to ST transition happening at the end of the day?
Nae
# Is there any DST to ST transition happening at the end of the day?

(Asked by: username_0 on 2021-07-06)

I am a software developer, and I am testing a DateTime converter right now. I need to see if the conversion works when a timezone is transitioning from daylight saving time to its standard time at the last possible timeframe in the transition day, i. e 23:00 to 00:00 happens twice, the former with DST on, and the latter with ST on. Is there ever such an occurrence in the future or past? Is there such a dataset I can query this specifically?

**Tags:** time

> **Comments:**
> **username_0**: @Fred It doesn't matter where I am, I am interested in all timezones at all times the calendar exists. Your explanation is true for most European countries but the world is a bigger place. According to my findings, there are 68 past such occurrences, the latest of which is in 2010. I will send it as an answer when I have more time.  
> **username_1**: You say `DateTime`, which makes us think .NET - if so, this is a complete aside, but consider using a library like [NodaTime](https://nodatime.org/) or [JodaTime](https://www.joda.org/joda-time/) (if Java).  It's almost certain to have thought of and covered far more corner-cases than your home-rolled solution will have.  If you really care about accurate time management across many time zones and many countries, you really can't beat a library (unless this component development is purely an academic exercise you're taking on for its own merits).  

---

## 1 answers

### Answer by username_2 on 2021-07-06. Score: 8

Per [Wikipedia](https://en.wikipedia.org/wiki/Daylight_saving_time_by_country), several countries switch to daylight savings time at midnight. Time jumps from midnight to 1:00 AM in these countries on the date of the switch to daylight savings time. Only Chile, Iran, Lebanon, Palestine, Paraguay, and Syria switch back to standard time at midnight. Time jumps from midnight to 11:00 PM in these countries on the date of the switch from daylight savings time to standard time.


---

