class_docstr: Data representing dates with times.
  
  :param datetime_format:
      A formatting string for :meth:`datetime.datetime.strptime` to use
      instead of using regex-based parsing.
  :param timezone:
      A ``ZoneInfo`` timezone to apply to each parsed date.
  :param locale:
      A locale specification such as :code:`en_US` or :code:`de_DE` to use
      for parsing formatted datetimes.
docstr: Restore state from the unpickled state values. Set _constants to an instance
  of the parsedatetime Constants class, and _parser to an instance
  of the parsedatetime Calendar class.
docstr_tok: ["Restore","state","from","the","unpickled","state","values",".","Set","_constants","to","an","instance","of","the","parsedatetime","Constants","class",",","and","_parser","to","an","instance","of","the","parsedatetime","Calendar","class","."]
code: def __setstate__(self, ndict):
      """
      Restore state from the unpickled state values. Set _constants to an instance
      of the parsedatetime Constants class, and _parser to an instance
      of the parsedatetime Calendar class.
      """
      self.__dict__.update(ndict)
      self._constants = parsedatetime.Constants(localeID=self.locale)
      self._parser = parsedatetime.Calendar(
          constants=self._constants,
          version=parsedatetime.VERSION_CONTEXT_STYLE,
      )
  
file_path: agate/agate/data_types/date_time.py
imports: import datetime
  import locale
  import isodate
  import parsedatetime
  from agate.data_types.base import DataType
  from agate.exceptions import CastError
label_desc: Use image node_id 3 for calling the DateTime obj's underlying member method code with example usage: obj.__setstate__(ndict) without return types