public UmmAlQuraCalendar(Calendar calendar){
		int[] date = UmmALQura.gregorianToHijri(calendar.get(YEAR), calendar.get(MONTH)+1, calendar.get(DATE));
		fields[YEAR] = date[0];
		fields[MONTH] = date[1];
		fields[DAY_OF_MONTH] = date[2];
		fields[DAY_OF_WEEK] = date[3];
		//Set time
		for (int i = AM_PM; i < FIELD_COUNT; i++) {
			fields[i] = calendar.get(i);
		}
	}