Does getIndexBefore() not work if time is exact? It probably should, unless you use it in a case where you don't want that.