APISonar


org.grobid.core.data.Date.Date

> org > grobid > core > data > Date > Date
org APIs grobid APIs core APIs data APIs Date APIs Date APIs

Example 1
public void testDateCompare_YearMonthVsYear_moreSpecifiedWins() {
        Date date1 = new Date();
        date1.setYear(2007);

        Date date2 = new Date();
        date2.setYear(2007);
        date2.setMonth(9);

        assertThat(date1.compareTo(date2), is(1));
    }