class_docstr: Stores and handles locale-specific information related to time.
  
  ATTRIBUTES:
      f_weekday -- full weekday names (7-item list)
      a_weekday -- abbreviated weekday names (7-item list)
      f_month -- full month names (13-item list; dummy value in [0], which
                  is added by code)
      a_month -- abbreviated month names (13-item list, dummy value in
                  [0], which is added by code)
      am_pm -- AM/PM representation (2-item list)
      LC_date_time -- format string for date/time representation (string)
      LC_date -- format string for date representation (string)
      LC_time -- format string for time representation (string)
      timezone -- daylight- and non-daylight-savings timezone representation
                  (2-item list of sets)
      lang -- Language used by instance (2-item tuple)
class_docstr_tok: ["Stores","and","handles","locale-specific","information","related","to","time",".","ATTRIBUTES",":","f_weekday","--","full","weekday","names","(","7-item","list",")","a_weekday","--","abbreviated","weekday","names","(","7-item","list",")","f_month","--","full","month","names","(","13-item","list",";","dummy","value","in","[","0","]",",","which","is","added","by","code",")","a_month","--","abbreviated","month","names","(","13-item","list",",","dummy","value","in","[","0","]",",","which","is","added","by","code",")","am_pm","--","AM\/PM","representation","(","2-item","list",")","LC_date_time","--","format","string","for","date\/time","representation","(","string",")","LC_date","--","format","string","for","date","representation","(","string",")","LC_time","--","format","string","for","time","representation","(","string",")","timezone","--","daylight-","and","non-daylight-savings","timezone","representation","(","2-item","list","of","sets",")","lang","--","Language","used","by","instance","(","2-item","tuple",")"]
code: def __calc_timezone(self):
      # Set self.timezone by using time.tzname.
      # Do not worry about possibility of time.tzname[0] == time.tzname[1]
      # and time.daylight; handle that in strptime.
      try:
          time.tzset()
      except AttributeError:
          pass
      self.tzname = time.tzname
      self.daylight = time.daylight
      no_saving = frozenset({"utc", "gmt", self.tzname[0].lower()})
      if self.daylight:
          has_saving = frozenset({self.tzname[1].lower()})
      else:
          has_saving = frozenset()
      self.timezone = (no_saving, has_saving)
  
imports: import time
  import locale
  import calendar
  from re import compile
  from re import IGNORECASE
  from re import escape
  from datetime import date, timedelta, timezone
  from _thread import allocate_lock
label_desc: Use image node_id 6 for calling the LocaleTime obj's underlying member method code with example usage: obj.__calc_timezone() without return types