Lines Matching defs:cal
42 final Calendar cal = Calendar.getInstance();
44 cal.set(Calendar.MILLISECOND, 0);
45 cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2);
46 cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f);
47 cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11);
49 cal.set(Calendar.DATE, dosDate & 0x1f);
50 cal.set(Calendar.MONTH, ((dosDate >> 5) & 0x0f) - 1);
51 cal.set(Calendar.YEAR, 1980 + (dosDate >> 9));
53 return cal.getTimeInMillis();
63 Calendar cal = Calendar.getInstance();
64 cal.setTimeInMillis(javaDateTime);
65 return 2048 * cal.get(Calendar.HOUR_OF_DAY) + 32 * cal.get(Calendar.MINUTE) +
66 cal.get(Calendar.SECOND) / 2;
76 Calendar cal = Calendar.getInstance();
77 cal.setTimeInMillis(javaDateTime);
78 return 512 * (cal.get(Calendar.YEAR) - 1980) + 32 * (cal.get(Calendar.MONTH) + 1) +
79 cal.get(Calendar.DATE);