How To Find Time Conflicts
Posted: Wed Nov 03, 2004 3:09 pm
I am working on a class scheduler, and I am having trouble figuring out how to solve the problems of deciding if a class is conflicting with one another.
Say I have 2 classes
Class 1 runs from 14:00 to 15:15
Class 2 runs from 15:00 to 15:50
Those class times are definately overlapping. Can anybody help me figure out how to tell if they are over lapping?
Here's another set of test data that is eluding me:
Class 1 runs from 18:00 to 21:00
Class 2 runs from 19:00 to 19:50
If anybody could help me out, that would be really great and much appreciated =)
-Pat
Say I have 2 classes
Class 1 runs from 14:00 to 15:15
Class 2 runs from 15:00 to 15:50
Those class times are definately overlapping. Can anybody help me figure out how to tell if they are over lapping?
Here's another set of test data that is eluding me:
Class 1 runs from 18:00 to 21:00
Class 2 runs from 19:00 to 19:50
If anybody could help me out, that would be really great and much appreciated =)
-Pat