def _get_nearest_item_index(feed_info, date):
    timestamp_usec = time.mktime(date.utctimetuple()) * 1000000
    index = 0
    for item_timestamp_usec in feed_info.item_timestamps_usec:
        if timestamp_usec >= item_timestamp_usec:
            break
        index += 1
    return min(index, len(feed_info.item_timestamps_usec) - 1)
dataset/ETHPy150Open mihaip/streamspigot/app/feedplayback/data.py/_get_nearest_item_index/swapped operands of `>=`