To determine if a time falls between two points