An ExtensionDtype for timezone-aware datetime data.
This is not an actual numpy dtype, but a duck type.
The precision of the datetime data. Currently limited to "ns".
The timezone.
Attributes
The precision of the datetime data. | |
The timezone. |
Methods
None |
When the requested timezone cannot be found.
Examples
>>> from zoneinfo import ZoneInfo
>>> pd.DatetimeTZDtype(tz=ZoneInfo('UTC'))
datetime64[ns, UTC]
>>> pd.DatetimeTZDtype(tz=ZoneInfo('Europe/Paris'))
datetime64[ns, Europe/Paris]
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.DatetimeTZDtype.html