@Test public void testMinMax() { CalendarDate max = CalendarDate.of(Long.MAX_VALUE); System.out.printf("CalendarDate%n"); System.out.printf(" max = %s%n", max); CalendarDate min = CalendarDate.of(Long.MIN_VALUE); System.out.printf(" min = %s%n", min); System.out.printf("%nDate%n"); Date d = new Date(Long.MAX_VALUE); System.out.printf("max = %s%n", d); Date ds = new Date(Long.MIN_VALUE); System.out.printf("min = %s%n", ds); }
static public CalendarDateUnit of(String calendarName, String udunitString) { Calendar calt = Calendar.get(calendarName); if (calt == null) calt = Calendar.getDefault(); return new CalendarDateUnit(calt, udunitString); }
CalendarDateUnit { static public CalendarDateUnit of(String calendarName, String udunitString) { Calendar calt = Calendar.get(calendarName); if (calt == null) calt = Calendar.getDefault(); return new CalendarDateUnit(calt, udunitString); } }
CalendarDateUnit { static public CalendarDateUnit of(String calendarName, String udunitString) { Calendar calt = Calendar.get(calendarName); if (calt == null) calt = Calendar.getDefault(); return new CalendarDateUnit(calt, udunitString); } private  CalendarDateUnit(Calendar calt, String dateUnitString); }
CalendarDateUnit { static public CalendarDateUnit of(String calendarName, String udunitString) { Calendar calt = Calendar.get(calendarName); if (calt == null) calt = Calendar.getDefault(); return new CalendarDateUnit(calt, udunitString); } private  CalendarDateUnit(Calendar calt, String dateUnitString); static CalendarDateUnit of(String calendarName, String udunitString); static CalendarDateUnit withCalendar(Calendar calt, String udunitString); CalendarDate makeCalendarDate(double value); CalendarDate makeCalendarDate(int value); @Override String toString(); CalendarDate getBaseCalendarDate(); CalendarPeriod getTimeUnit(); Calendar getCalendar(); boolean isCalendarField(); static void main(String[] args); }
CalendarDateUnit { static public CalendarDateUnit of(String calendarName, String udunitString) { Calendar calt = Calendar.get(calendarName); if (calt == null) calt = Calendar.getDefault(); return new CalendarDateUnit(calt, udunitString); } private  CalendarDateUnit(Calendar calt, String dateUnitString); static CalendarDateUnit of(String calendarName, String udunitString); static CalendarDateUnit withCalendar(Calendar calt, String udunitString); CalendarDate makeCalendarDate(double value); CalendarDate makeCalendarDate(int value); @Override String toString(); CalendarDate getBaseCalendarDate(); CalendarPeriod getTimeUnit(); Calendar getCalendar(); boolean isCalendarField(); static void main(String[] args); static final String udunitPatternString; }