The Python Oracle

Is there a way to infer in Python if a date is the actual day in which the DST (Daylight Saving Time) change is made?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Music Box Puzzles

--

Chapters
00:00 Question
01:56 Accepted answer (Score 1)
02:58 Answer 2 (Score 2)
03:23 Thank you

--

Full question
https://stackoverflow.com/questions/6948...

Question links:
[example]: https://stackoverflow.com/questions/3114...

Accepted answer links:
[datetime.dst()]: https://docs.python.org/3/library/dateti...
[Europe/Berlin]: https://www.timeanddate.com/time/change/...
[zoneinfo]: https://docs.python.org/3/library/zonein...
[pytz deprecation shim]: https://pypi.org/project/pytz-deprecatio.../

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #datetime #timezone #pytz

#avk47