String result = DurationFormatUtils.formatPeriod(cal1.getTime().getTime(), cal2.getTime().getTime(), format);
long milli1 = cal1.getTime().getTime(); long milli2 = cal2.getTime().getTime(); String result = DurationFormatUtils.formatPeriod(milli1, milli2, format);
    private void assertEqualDuration(String expected, int[] start, int[] end, String format) {        Calendar cal1 = Calendar.getInstance();        cal1.set(start[0], start[1], start[2], start[3], start[4], start[5]);        cal1.set(Calendar.MILLISECOND, 0);        Calendar cal2 = Calendar.getInstance();        cal2.set(end[0], end[1], end[2], end[3], end[4], end[5]);        cal2.set(Calendar.MILLISECOND, 0);        String result = DurationFormatUtils.formatPeriod(cal1.getTime().getTime(), cal2.getTime().getTime(), format);        assertEquals(expected, result);    }