class DateExtractionHelper {

    public static boolean isDateInRange(ExtractedDate date) {
        ExtractedDate begin = DateParser.parseDate("1990-11-13T00:00:00Z", RegExp.DATE_ISO8601_YMD_T);
        ExtractedDate end = new ExtractedDateImpl();
        DateExactness compareDepth = DateExactness.DAY;
        if (date.getExactness() != DateExactness.UNSET) {
            compareDepth = DateExactness.getCommonExactness(DateExactness.DAY, date.getExactness());
        }
        DateComparator dateComparator = new DateComparator(compareDepth);
        boolean gt = dateComparator.compare(begin, date) > -1;
        boolean lt = dateComparator.compare(date, end) > -1;
        return gt && lt;
    }

    private  DateExtractionHelper();

}