0

I am looking for a python or java script to get the DST date and time for a specific IANA time zone and year.

In the end it should look like something like this

<Year ID="2007" StartDst="DT#2007-03-30-02:00:00" EndDst="DT#2007-09-16-02:00:00" />
<Year ID="2008" StartDst="DT#2008-03-28-02:00:00" EndDst="DT#2008-10-05-02:00:00" />
<Year ID="2009" StartDst="DT#2009-03-27-02:00:00" EndDst="DT#2009-09-27-02:00:00" />
<Year ID="2010" StartDst="DT#2010-03-26-02:00:00" EndDst="DT#2010-09-12-02:00:00" />
<Year ID="2011" StartDst="DT#2011-04-01-02:00:00" EndDst="DT#2011-10-02-02:00:00" />

Input will be timezone and year and output should DST start and DST end. Is there an easy way to do this in Python?

Stephan
  • 1
  • 2

0 Answers0