Anbei ein kurzes Skript zur Ermittlung der Sommer-/Winterzeit Umstellung:
#!/usr/bin/env python
from datetime import date
for i in range(2012, 2020):
print i
# Sommerzeit - letzter Sonntag im Maerz - von 2h auf 3h
year = date.today().replace(year=i)
march_last_day = year.replace(month=3, day=31)
if march_last_day.weekday() == 6:
print "Sommerzeit " + str(march_last_day)
else:
print "Sommerzeit " + str(year.replace(month=3, day=31-march_last_day.weekday()-1))
# Winterzeit - letzter Sonntag im Oktober - von 3h auf 2h
oct_last_day = year.replace(month=10, day=31)
if oct_last_day.weekday() == 6:
print "Winterzeit " + str(oct_last_day)
else:
print "Winterzeit " + str(year.replace(month=10, day=31-oct_last_day.weekday()-1))