I have seen several questions / answers here on stackoverflow regarding the question how to detect whether a certain (timezone aware) datetime
value is a daylight saving time value.
As this is a little bit inconvenient for my use case:
Is there any functionality in Python where I supply
- the year and
- the timezone
as input and get something back like:
- datetime (tuple) representing the start of the DST period
- datetime (tuple) representing the end of the DST period