Time tStartTime = (Time)hm.get("Start");
Time tEndTime = (Time)hm.get("End");
java.util.Date dt = (java.util.Date)hm.get("Date");
Calendar calendarStart = Calendar.getInstance();
calendarStart.set(dt.getYear(), dt.getMonth(), dt.getDay(), tStartTime.getHours(),
tStartTime.getMinutes());
Calendar calendarEnd = Calendar.getInstance();
calendarEnd.set(dt.getYear(), dt.getMonth(), dt.getDay(), tEndTime.getHours(), tEndTime
.getMinutes());
long startMili = calendarStart.getTimeInMillis();
long endMili = calendarEnd.getTimeInMillis();
long diff = endMili - startMili;
Time difTime = new Time(diff);
int startHrs = calendarStart.get(Calendar.HOUR_OF_DAY);// startHrsmm[0];
int startMins = calendarStart.get(Calendar.MINUTE);// startHrsmm[1];
int endHrs = calendarEnd.get(Calendar.HOUR_OF_DAY);// endHrsmm[0];
int endMins = calendarEnd.get(Calendar.MINUTE);// endHrsmm[1];
float Duration = 0;
Number dBreakTime = (Number)hm.get("BreakTime");
float BreakTime = dBreakTime.floatValue();