public static boolean periodOtherThanDays(Period period) {
        return Arrays.stream(period.getFieldTypes())
                .filter(type -> !type.equals(DurationFieldType.days()))
                .anyMatch(type -> period.get(type) != 0);
    }
@Test
    public void testPeriodOtherThanDays() {
        assertThat(periodOtherThanDays(Period.days(5))).isFalse();
        assertThat(periodOtherThanDays(Period.weeks(5))).isTrue();
        assertThat(periodOtherThanDays(Period.days(5).withHours(3))).isTrue();
    }