class_docstr: A timezone that has a constant offset from UTC
  
  These timezones are rare, as most locations have changed their
  offset at some point in their history
class_docstr_tok: ["A","timezone","that","has","a","constant","offset","from","UTC","These","timezones","are","rare",",","as","most","locations","have","changed","their","offset","at","some","point","in","their","history"]
docstr: Correct the timezone information on the given datetime.
  
  This is normally a no-op, as StaticTzInfo timezones never have
  ambiguous cases to correct:
  
  >>> from pytz import timezone
  >>> gmt = timezone('GMT')
  >>> isinstance(gmt, StaticTzInfo)
  True
  >>> dt = datetime(2011, 5, 8, 1, 2, 3, tzinfo=gmt)
  >>> gmt.normalize(dt) is dt
  True
  
  The supported method of converting between timezones is to use
  datetime.astimezone(). Currently normalize() also works:
  
  >>> la = timezone('America/Los_Angeles')
  >>> dt = la.localize(datetime(2011, 5, 7, 1, 2, 3))
  >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
  >>> gmt.normalize(dt).strftime(fmt)
  '2011-05-07 08:02:03 GMT (+0000)'
docstr_tok: ["Correct","the","timezone","information","on","the","given","datetime",".","This","is","normally","a","no-op",",","as","StaticTzInfo","timezones","never","have","ambiguous","cases","to","correct",":",">",">",">","from","pytz","import","timezone",">",">",">","gmt","=","timezone","(","'GMT","'",")",">",">",">","isinstance","(","gmt",",","StaticTzInfo",")","True",">",">",">","dt","=","datetime","(","2011",",","5",",","8",",","1",",","2",",","3",",","tzinfo=gmt",")",">",">",">","gmt.normalize","(","dt",")","is","dt","True","The","supported","method","of","converting","between","timezones","is","to","use","datetime.astimezone","(",")",".","Currently","normalize","(",")","also","works",":",">",">",">","la","=","timezone","(","'America\/Los_Angeles","'",")",">",">",">","dt","=","la.localize","(","datetime","(","2011",",","5",",","7",",","1",",","2",",","3",")",")",">",">",">","fmt","=","'","%","Y-","%","m-","%","d","%","H",":","%","M",":","%","S","%","Z","(","%","z",")","'",">",">",">","gmt.normalize","(","dt",")",".strftime","(","fmt",")","'2011-05-07","08:02:03","GMT","(","+0000",")","'"]
code: def normalize(self, dt, is_dst=False):
      """Correct the timezone information on the given datetime.
  
      This is normally a no-op, as StaticTzInfo timezones never have
      ambiguous cases to correct:
  
      >>> from pytz import timezone
      >>> gmt = timezone('GMT')
      >>> isinstance(gmt, StaticTzInfo)
      True
      >>> dt = datetime(2011, 5, 8, 1, 2, 3, tzinfo=gmt)
      >>> gmt.normalize(dt) is dt
      True
  
      The supported method of converting between timezones is to use
      datetime.astimezone(). Currently normalize() also works:
  
      >>> la = timezone('America/Los_Angeles')
      >>> dt = la.localize(datetime(2011, 5, 7, 1, 2, 3))
      >>> fmt = '%Y-%m-%d %H:%M:%S %Z (%z)'
      >>> gmt.normalize(dt).strftime(fmt)
      '2011-05-07 08:02:03 GMT (+0000)'
      """
      if dt.tzinfo is self:
          return dt
      if dt.tzinfo is None:
          raise ValueError("Naive time - no tzinfo set")
      return dt.astimezone(self)
  
imports: from datetime import datetime, timedelta, tzinfo
  from bisect import bisect_right
  import pytz
  from pytz.exceptions import AmbiguousTimeError, NonExistentTimeError
label_desc: Use image node_id 6 for calling the StaticTzInfo obj's underlying member method code with example usage: obj.normalize(dt, is_dst) and returns: dt, dt