Allen's interval algebra
en.wikipedia.org