I'm debugging an issue involving tzlocal and need to test values of tzlocal() other than "mine". It looks like a synthetic tzlocal can be generated by patching time.timezone and possibly time.daylight, time.altzone. So the question is:
a) Is there a better way of simulating different tzlocals?
b) Is there a list of valid tzlocal values (or time.timezone/time.daylight./time.altzone triples) for iterating over?
I'm debugging an issue involving
tzlocaland need to test values oftzlocal()other than "mine". It looks like a synthetic tzlocal can be generated by patchingtime.timezoneand possiblytime.daylight,time.altzone. So the question is:a) Is there a better way of simulating different tzlocals?
b) Is there a list of valid tzlocal values (or time.timezone/time.daylight./time.altzone triples) for iterating over?