public int compareTo(TimePeriod t)
	{
		int otherStart = t.getStart().getTime();
		int starti = this.start.getTime();
		int otherEnd = t.getEnd().getTime();
		int endi = this.end.getTime();
		
		// -1 if this time period is before t
		// this means that end is less than 
		// other start.
		if (endi < otherStart)
		{
			return -1;
		}
		// 0 if this time period is during t
		// this means that starti is >= to 
		// otherStart and also less that otherEnd
		// or endi is >= to otherStart and also less
		// than otherEnd
		// Or if starti <= otherStart and endi >= otherEnd
		else if ((starti >= otherStart && starti <= otherEnd) || (endi >= otherStart && endi <= otherEnd) || (starti <= otherStart && endi >= otherEnd))
		{
			return 0;
		}
		
		/*
		else if (starti > otherEnd)
		{
		*/
			// 1 if this time period is after t
			// this means that starti is > than
			// otherEnd
			return 1;
		//}
		
		
		//return 1;
	}