LJ::DB::time_range_to_ids — Performs a binary search on a table's primary id key looking for time boundaries as specified. Returns the boundary ids that were found, effectively simulating a key on 'time' for the specified table.
opts. A hashref of keys. Keys are: 'table' - table name to query; 'roles' - arrayref of db roles to use, in order. Defaults to ['slow']; 'idcol' - name of 'id' primary key column. 'timecol' - name of unixtime column to use for constraint; 'starttime' - starting unixtime time of rows to match; 'endtime' - ending unixtime of rows to match.