I figured out that I can drop down to a lower level and use a manually constructed tz file to create the desired timezone object. The pytz package has a build_tzinfo() function which takes a zone name and an open file object).
Skip On Tue, Feb 21, 2017 at 8:06 AM, Skip Montanaro <skip.montan...@gmail.com> wrote: > Is it possible to create a timezone which is a derivative of an > existing timezone? I'd like to create one which is several hours > different ahead of America/Chicago, but follows Chicago's DST changes. > My initial attempt was to create a timezone object using pytz: > > tz = pytz.timezone("America/Chicago") > > then add eight hours to its _utcoffset attribute, but that doesn't > work. Is "creative" timezone construction possible, or am I limited to > what pytz finds in the Olson database? > > Thx, > > Skip -- https://mail.python.org/mailman/listinfo/python-list