@Test
    public void testIssueDaysDiff() throws ParseException {
        // https://github.com/aws/aws-sdk-java/issues/233
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
        sdf.setTimeZone(new SimpleTimeZone(0, "GMT"));
        String edgeCase = "292278994-08-17T07:12:55.807Z";
        String testCase = "292278993-08-17T07:12:55.807Z";
        Date od = sdf.parse(edgeCase);
        Date testd = sdf.parse(testCase);
        long diff = od.getTime() - testd.getTime();
        assertTrue(diff == 365L*24*60*60*1000);
    }
Detect whether we are joda-time 2.9 or later. This is important because some tests test a bug that was fixed
in 2.9. We test for a method named Interval.parseWithOffset(String); that was added in 2.9.

@return true if we are 2.9 or later, false if not.
aws-java-sdk-core/src/test/java/com/amazonaws/util/DateUtilsTest.java