Home | History | Annotate | Download | only in calendar

Lines Matching defs:cal

69        EthiopicCalendar cal = newCivil();
71 doRollAdd(ROLL, cal, tests);
242 EthiopicCalendar cal = new EthiopicCalendar(1, 0, 1);
243 assertEquals("Ethiopic Date", "Wed Jan 01, 0001 AD", fmt.format(cal));
245 cal.set(Calendar.ERA, 0);
246 cal.set(Calendar.YEAR, 5500);
247 assertEquals("Ethiopic Date", "Tue Jan 01, 5500 BC", fmt.format(cal));
257 gc.setTime(cal.getTime());
264 EthiopicCalendar cal = new EthiopicCalendar();
265 cal.clear();
266 cal.set(1000, 0, 30);
268 cal.get(YEAR) + "/" +
269 cal.get(MONTH) + "/" +
270 cal.get(DATE));
271 cal.clear();
272 cal.set(1, 0, 30);
274 cal.get(YEAR) + "/" +
275 cal.get(MONTH) + "/" +
276 cal.get(DATE));
282 EthiopicCalendar cal = new EthiopicCalendar();
283 cal.clear();
284 cal.set(Calendar.JULIAN_DAY, jd);
285 if (cal.get(Calendar.EXTENDED_YEAR) == 1567 &&
286 cal.get(Calendar.MONTH) == 8 &&
287 cal.get(Calendar.DAY_OF_MONTH) == 9){
299 Calendar cal = Calendar.getInstance();
300 cal.set(2007, Calendar.JANUARY, 1);
302 doLimitsTest(ethiopic, null, cal.getTime());
312 EthiopicCalendar cal = new EthiopicCalendar(TimeZone.getDefault());
313 if(cal == null){
320 EthiopicCalendar cal = new EthiopicCalendar(ULocale.getDefault());
321 if(cal == null){
328 EthiopicCalendar cal = new EthiopicCalendar(Locale.getDefault());
329 if(cal == null){
336 EthiopicCalendar cal = new EthiopicCalendar(TimeZone.getDefault(), Locale.getDefault());
337 if(cal == null){
344 EthiopicCalendar cal = new EthiopicCalendar(TimeZone.getDefault(), ULocale.getDefault());
345 if(cal == null){
352 EthiopicCalendar cal = new EthiopicCalendar(new Date());
353 if(cal == null){
360 EthiopicCalendar cal = new EthiopicCalendar(1997, EthiopicCalendar.MESKEREM, 1);
361 if(cal == null){
368 EthiopicCalendar cal = new EthiopicCalendar(1997, EthiopicCalendar.MESKEREM, 1, 1, 1, 1);
369 if(cal == null){
377 EthiopicCalendar cal = newAmeteAlemEraCalendar();
378 cal.setAmeteAlemEra(false);
379 if (cal.isAmeteAlemEra()) {
384 cal.setTime(now);
386 Date then = cal.getTime();
393 cal.add(Calendar.MONTH, 1);
394 cal.add(Calendar.DAY_OF_MONTH, 1);
395 cal.add(Calendar.YEAR, 1);
397 logln(cal.getTime().toString());
402 EthiopicCalendar cal = new EthiopicCalendar(1997, EthiopicCalendar.MESKEREM, 1);
403 Date time = cal.getTime();
415 cal = new EthiopicCalendar(calLocale);
420 DateFormat format = DateFormat.getDateTimeInstance(cal, DateFormat.FULL, DateFormat.FULL, formatLocale);