public static String timeToString3(Date date) {
		if (date == null)
			return "无";
		long milliSecond = System.currentTimeMillis() - date.getTime();
		int ss = 1000;
		int mi = ss * 60;
		int hh = mi * 60;
		long day = hh * 24;
		long month = day * 30;
		long year = month * 12;

		long years = (milliSecond) / year;
		long months = (long) ((milliSecond - years * year) / month);
		long days = (milliSecond - years * year - months * month) / day;
		long hour = (long) ((milliSecond - years * year - months * month - days * day) / hh);
		long minute = (int) ((milliSecond - years * year - months * month - days * day - hour * hh) / mi);
		long second = (int) ((milliSecond - years * year - months * month - days * day - hour * hh - minute * mi) / ss);
		String result = "";
		if (years != 0) {
			result += years + "年前";
		} else if (months != 0) {
			result += months + "月前";
		} else if (days != 0) {
			result += days + "天前";
		} else if (hour != 0) {
			result += hour + "小时前";
		} else if (minute != 0) {
			result += minute + "分钟前";
		} else if (second != 0) {
			result += second + "秒前";
		}
		return result;
	}