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",")"]
docstr: Set all attributes.
  
  Order of methods called matters for dependency reasons.
  
  The locale language is set at the offset and then checked again before
  exiting.  This is to make sure that the attributes were not set with a
  mix of information from more than one locale.  This would most likely
  happen when using threads where one thread calls a locale-dependent
  function while another thread changes the locale while the function in
  the other thread is still running.  Proper coding would call for
  locks to prevent changing the locale while locale-dependent code is
  running.  The check here is done in case someone does not think about
  doing this.
  
  Only other possible issue is if someone changed the timezone and did
  not call tz.tzset .  That is an issue for the programmer, though,
  since changing the timezone is worthless without that call.
docstr_tok: ["Set","all","attributes",".","Order","of","methods","called","matters","for","dependency","reasons",".","The","locale","language","is","set","at","the","offset","and","then","checked","again","before","exiting",".","This","is","to","make","sure","that","the","attributes","were","not","set","with","a","mix","of","information","from","more","than","one","locale",".","This","would","most","likely","happen","when","using","threads","where","one","thread","calls","a","locale-dependent","function","while","another","thread","changes","the","locale","while","the","function","in","the","other","thread","is","still","running",".","Proper","coding","would","call","for","locks","to","prevent","changing","the","locale","while","locale-dependent","code","is","running",".","The","check","here","is","done","in","case","someone","does","not","think","about","doing","this",".","Only","other","possible","issue","is","if","someone","changed","the","timezone","and","did","not","call","tz.tzset",".","That","is","an","issue","for","the","programmer",",","though",",","since","changing","the","timezone","is","worthless","without","that","call","."]
code: def __init__(self):
      """Set all attributes.
  
      Order of methods called matters for dependency reasons.
  
      The locale language is set at the offset and then checked again before
      exiting.  This is to make sure that the attributes were not set with a
      mix of information from more than one locale.  This would most likely
      happen when using threads where one thread calls a locale-dependent
      function while another thread changes the locale while the function in
      the other thread is still running.  Proper coding would call for
      locks to prevent changing the locale while locale-dependent code is
      running.  The check here is done in case someone does not think about
      doing this.
  
      Only other possible issue is if someone changed the timezone and did
      not call tz.tzset .  That is an issue for the programmer, though,
      since changing the timezone is worthless without that call.
  
      """
      self.lang = _getlang()
      self.__calc_weekday()
      self.__calc_month()
      self.__calc_am_pm()
      self.__calc_timezone()
      self.__calc_date_time()
      if _getlang() != self.lang:
          raise ValueError("locale changed during initialization")
      if time.tzname != self.tzname or time.daylight != self.daylight:
          raise ValueError("timezone changed during initialization")
  
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 1 to create a new LocaleTime object from inherited base classes: object with example: obj = LocaleTime()