checkTO function

Check for temporal overlap