Lines Matching refs:cal
45 Calendar cal = new GregorianCalendar(MOSCOW, Locale.US);
46 cal.clear();
48 cal.set(1922, SEPTEMBER, 30);
49 test(sdf, cal);
50 cal.add(DAY_OF_YEAR, 1);
51 test(sdf, cal);
52 cal.set(1991, MARCH, 31);
54 test(sdf, cal);
55 cal.add(DAY_OF_YEAR, 1);
56 test(sdf, cal);
58 cal.setTimeInMillis(System.currentTimeMillis());
59 test(sdf, cal);
69 private static void test(SimpleDateFormat sdf, Calendar cal) throws Exception {
70 Date d = cal.getTime();
84 Calendar cal = new GregorianCalendar(tz, Locale.US);
85 cal.clear();
86 cal.set(2012, JUNE, 22);
87 test(sdf, cal);
88 cal.set(2012, DECEMBER, 22);
89 test(sdf, cal);
90 cal.setTimeInMillis(System.currentTimeMillis());
91 test(sdf, cal);