src/com/wherehoo/WHTimeInterval.java
/**
     * Returns a new <tt>WHCalendar</tt> object that represents the point in time of <tt>cal</tt>, when it is
     * offset by the parameters passed in <tt>offsets[]</tt> array. 
     * <tt> offsets[]</tt> has to be at least 6 elements long:<br><br>
     *<center><tt>[year offset, month offset, day of month offset,hour of day offset, minute offset, second offset]
     *</tt></center><br>
     * The remaining elements of an array are ignored, if present.
     */
Returns a new WHCalendar object that represents the point in time of cal, when it is
offset by the parameters passed in offsets[] array.
 offsets[] has to be at least 6 elements long:
[year offset, month offset, day of month offset,hour of day offset, minute offset, second offset]

The remaining elements of an array are ignored, if present.
Returns a new WHCalendar object that represents the point in time of cal when it is offset by the parameters passed in offsets [] array . offsets [] has to be at least 6 elements long : [ year offset month offset day of month offset hour of day offset minute offset second offset ] The remaining elements of an array are ignored if present .
public static Calendar addAllDates(Calendar cal, int offsets[]) throws WHTimeException {
	Calendar _cal = Calendar.getInstance();
	_cal = (Calendar) cal.clone();
	try {
	    _cal.add(Calendar.YEAR,			offsets[0]);
	    _cal.add(Calendar.MONTH,			offsets[1]);
	    _cal.add(Calendar.DAY_OF_MONTH,	offsets[2]);
	    _cal.add(Calendar.HOUR_OF_DAY,	offsets[3]);
	    _cal.add(Calendar.MINUTE,		offsets[4]);
	    _cal.add(Calendar.SECOND,		offsets[5]);
	} catch (ArrayIndexOutOfBoundsException e){
	    throw new WHTimeException();
	}
	return _cal;
    }
public static Calendar addAllDates ( Calendar cal , int offsets [ ] ) throws WHTimeException { Calendar _cal = Calendar . getInstance ( ) ; _cal = ( Calendar ) cal . clone ( ) ; try { _cal . add ( Calendar . YEAR , offsets [ 0 ] ) ; _cal . add ( Calendar . MONTH , offsets [ 1 ] ) ; _cal . add ( Calendar . DAY_OF_MONTH , offsets [ 2 ] ) ; _cal . add ( Calendar . HOUR_OF_DAY , offsets [ 3 ] ) ; _cal . add ( Calendar . MINUTE , offsets [ 4 ] ) ; _cal . add ( Calendar . SECOND , offsets [ 5 ] ) ; } catch ( ArrayIndexOutOfBoundsException e ) { throw new WHTimeException ( ) ; } return _cal ; }
Returns a new <tt>WHCalendar</tt> object that represents the point in time of <tt>cal</tt>, when it is
 offset by the parameters passed in <tt>offsets[]</tt> array.
Returns a new <tt > WHCalendar< / tt > object that represents the point in time of <tt > cal< / tt > when it is offset by the parameters passed in <tt > offsets [] < / tt > array .
// Add the offset to the current object
