src/org/nutz/lang/Times.java
public static int yearDiffCurr(String after) {
        Date beforeDay = new Date();
        Date afterDay = parseq(DF_DATE, after);
        return getYear(beforeDay) - getYear(afterDay);
    }
public static int yearDiffCurr(String after) {
        Date beforeDay = new Date();
        Date afterDay = parseq(DF_DATE, after);
        return getYear(beforeDay) - getYear(afterDay);
    }
比较指定日期与当前日期的年差

@param after
指定的后一个日期,格式yyyy-MM-dd
@return 年份差值