public static boolean isWithinSameInterval(long time1, long time2, int intervalInMinutes, int offsetInMinutes) {
		return getPreviousIntervalStart(time1, intervalInMinutes, offsetInMinutes) == getPreviousIntervalStart(time2, intervalInMinutes, offsetInMinutes);
	}
public static boolean isWithinSameInterval ( long time1 , long time2 , int intervalInMinutes , int offsetInMinutes ) { return getPreviousIntervalStart ( time1 , intervalInMinutes , offsetInMinutes ) == getPreviousIntervalStart ( time2 , intervalInMinutes , offsetInMinutes ) ; }
@param time1 time in millis
@param time2 time in millis
@param intervalInMinutes should be > 0
@return true if the two specified times are part of the same intervalInMinutes in local time zone