Skip to main content
`Ctrl`+`K`

# pandas.DatetimeTZDtype.unit

property DatetimeTZDtype.unit

  The precision of the datetime data.

  Returns the time resolution as one of `'s'`, `'ms'`, `'us'`, or `'ns'`.

  See also

  `DatetimeTZDtype.tz`

    Retrieves the timezone.

  Examples

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