changed return value to bool type in TimeInterval::contains