OK, this is more a curiosity question, but how does pytz know all the daylight savings times (DST)? For example, that ‘Europe/Copenhagen’ time switches in March and October.
Or rather, what happens if a country decides to do away with DST? Will everyone have to get an updated version of Pytz? Is there someone “at pytz” keeping track of this? Is there a formal list somewhere?
PyTZ uses the Olson timezone database, and it updates regularly. PyTZ is not the only user; most POSIX systems use it too, including Linux and OS X.
Yes, new revisions of PyTZ are packaged whenever that database updates.