modin.pandas.DatetimeIndex.tz

property DatetimeIndex.tz: NoReturn[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/utils/error_message.py#L85-L94)

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
Language: English