How to check a time period is overlapping another time period in the same day.
For example,
JOda Time has this functionality baked in. It's very well-built and on JSR route to replace the broken Java Calendar API. You should probably considering using it.