Add get_row_by_time helper