pandas.DatetimeIndex.indexer_at_time

DatetimeIndex.indexer_at_time(self, time, asof=False)[source]

Return index locations of index values at particular time of day (e.g. 9:30AM).

Parameters
timedatetime.time or str

datetime.time or string in appropriate format (“%H:%M”, “%H%M”, “%I:%M%p”, “%I%M%p”, “%H:%M:%S”, “%H%M%S”, “%I:%M:%S%p”, “%I%M%S%p”).

Returns
values_at_timearray of integers