modin.pandas.DatetimeIndex.tz

property DatetimeIndex.tz: NoReturn[source]

Return the timezone.

Returns:

Returns None when the array is tz-naive.

Return type:

datetime.tzinfo, pytz.tzinfo.BaseTZInfo, dateutil.tz.tz.tzfile, or None

Examples

>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00",
...                         "2/1/2020 11:00:00+00:00"])
>>> idx.tz  
datetime.timezone.utc
Copy