forgot to disable .expand option.
function to return closest row based on time parameter.