pandas.DatetimeIndex.timetz#

property DatetimeIndex.timetz[source]#

Returns numpy array of datetime.time objects with timezones.

The time part of the Timestamps.

See also

DatetimeIndex.time

Returns numpy array of datetime.time objects. The time part of the Timestamps.

DatetimeIndex.tz

Return the timezone.

Examples

>>> idx = pd.DatetimeIndex(
...     ["1/1/2020 10:00:00+00:00", "2/1/2020 11:00:00+00:00"]
... )
>>> idx.timetz
array([datetime.time(10, 0, tzinfo=datetime.timezone.utc),
datetime.time(11, 0, tzinfo=datetime.timezone.utc)], dtype=object)