public static boolean withinDateRange(long date, long compareTo, int dayRange) {
        // ms = dayRange x 24 hours/day x 60 min/hour x 60 sec/min x 1000 ms/sec
        final long msRange = dayRange * 24L * 60L * 60L;
        return (compareTo - date) < msRange;
    }
@Test
    public void testWithinZonedDateRange() {
        ZonedDateTime lastRun = ZonedDateTime.parse("2023-11-15T11:15:03Z");
        ZonedDateTime current = ZonedDateTime.parse("2023-11-17T11:15:03Z");
        int range = 5;
        boolean expResult = true;
        boolean result = DateUtil.withinDateRange(lastRun, current, range);
        assertEquals(expResult, result);

        current = ZonedDateTime.parse("2023-11-21T11:15:03Z");
        expResult = false;
        result = DateUtil.withinDateRange(lastRun, current, range);
        assertEquals(expResult, result);
    }