modin.pandas.Series.dt.time

Series.dt.time[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/.tox/docs/lib/python3.9/site-packages/modin/pandas/series_utils.py#L599-L601)

Returns numpy array of datetime.time objects.

The time part of the Timestamps.

Examples

For Series:

>>> s = pd.Series(["1/1/2020 10:00:00", "2/1/2020 11:00:00"])
>>> s = pd.to_datetime(s)
>>> s
0   2020-01-01 10:00:00
1   2020-02-01 11:00:00
dtype: datetime64[ns]
>>> s.dt.time
0    10:00:00
1    11:00:00
dtype: object
Copy

For DatetimeIndex:

>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00",
...                         "2/1/2020 11:00:00+00:00"])
>>> idx.time
Index([10:00:00, 11:00:00], dtype='object')
Copy
Language: English