public Date timeCodeToDate(short code) {
		int dayCode = code / 48;
		int day = 0;
		switch(dayCode) {
		case 0:
			day = Calendar.SUNDAY;
			break;
		case 1:
			day = Calendar.MONDAY;
			break;
		case 2:
			day = Calendar.TUESDAY;
			break;
		case 3:
			day = Calendar.WEDNESDAY;
			break;
		case 4:
			day = Calendar.THURSDAY;
			break;
		case 5:
			day = Calendar.FRIDAY;
			break;
		case 6:
			day = Calendar.SATURDAY;
			break;
		}
		int timeCode = code % 48;
		int hour = timeCode / 2;
		int minute = (timeCode % 2) * 30;
		
		Calendar dateTime = Calendar.getInstance(Locale.US);
		dateTime.set(Calendar.DAY_OF_WEEK, day);
		dateTime.set(Calendar.HOUR_OF_DAY, hour);
		dateTime.set(Calendar.MINUTE, minute);
		
		return dateTime.getTime();
	}