code: public static int getTime(Calendar cal) {
  		int time = cal.get(Calendar.HOUR_OF_DAY);
  		time *= 64;
  		time += cal.get(Calendar.MINUTE);
  		time *= 64;
  		time += cal.get(Calendar.SECOND);
  		return time;
  	}
docs: Returns time representation defined in the EXI format ((Hour * 64) +
  Minutes) * 64 + seconds
  
  @param cal
  calendar
  @return time representation