pandas.DatetimeIndex.indexer_at_time

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

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

Parameters:

time : datetime.time or string

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_time : array of integers

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.DatetimeIndex.indexer_at_time.html