We have a function for this, `raw.times_to_index` I think?