Skip to main content
`Ctrl`+`K`

# pandas.DatetimeTZDtype.tz

property DatetimeTZDtype.tz

  The timezone.

  Returns the `datetime.tzinfo` object associated with this dtype, representing the timezone used for localization.

  See also

  `DatetimeTZDtype.unit`

    Retrieves precision of the datetime data.

  Examples

      >>> from zoneinfo import ZoneInfo
      >>> dtype = pd.DatetimeTZDtype(tz=ZoneInfo("America/Los_Angeles"))
      >>> dtype.tz
      zoneinfo.ZoneInfo(key='America/Los_Angeles')