Bug 186502 Support more dateTimeLevelType for cube
Model has added more dateTimeLevelType on cube definition. Current available types are: year, quarter, month, week-of-month, week-of-year, day-of-week, day-of-month, day-of-year, hour, minute, second. This need Dte to provide corresponding support as well.
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
{
				throw new AdapterException( e.getLocalizedMessage( ));
			}
		}
		
	}
	
	private Calendar getCalendar( Object d )
	{
		if ( d == null )
			throw new java.lang.IllegalArgumentException( "date value is null!" );
		
		Date date;
		try
		{
			date = DataTypeUtil.toDate( d );
			Calendar c = Calendar.getInstance( );
			c.setTime( date );
			return c;
		}
		catch ( BirtException e )
		{
			throw new java.lang.IllegalArgumentException( "date value is invalid");
		}
		
		
	}
	
}