my code:
import time
print hasattr(time.tzset)#error
and why someone do this like next:
if hasattr(time, 'tzset'):
# Move the time zone info into os.environ. See ticket #2315 for why
# we don't do this unconditionally (breaks Windows).
os.environ['TZ'] = self.TIME_ZONE
time.tzset()
i can't understand.
thanks