public static int getTerm(int y, int n) {
		if (y < 1900 || y > 2100) {
			return -1;
		}
		if (n < 1 || n > 24) {
			return -1;
		}

		final String _table = S_TERM_INFO[y - 1900];
		Integer[] _info = new Integer[6];
		for (int i = 0; i < 6; i++) {
			_info[i] = Integer.parseInt(_table.substring(i * 5, 5 * (i + 1)), 16);
		}
		String[] _calday = new String[24];
		for (int i = 0; i < 6; i++) {
			_calday[4 * i] = _info[i].toString().substring(0, 1);
			_calday[4 * i + 1] = _info[i].toString().substring(1, 3);
			_calday[4 * i + 2] = _info[i].toString().substring(3, 4);
			_calday[4 * i + 3] = _info[i].toString().substring(4, 6);
		}
		return NumberUtil.parseInt(_calday[n - 1]);
	}
@Test
	public void getTermTest() {

		assertEquals("小寒", SolarTerms.getTerm(2021, 1, 5));

		assertEquals("大寒", SolarTerms.getTerm(2021, 1, 20));

		assertEquals("立春", SolarTerms.getTerm(2021, 2, 3));

		assertEquals("雨水", SolarTerms.getTerm(2021, 2, 18));

		assertEquals("惊蛰", SolarTerms.getTerm(2021, 3, 5));

		assertEquals("春分", SolarTerms.getTerm(2021, 3, 20));

		assertEquals("清明", SolarTerms.getTerm(2021, 4, 4));

		assertEquals("谷雨", SolarTerms.getTerm(2021, 4, 20));

		assertEquals("立夏", SolarTerms.getTerm(2021, 5, 5));

		assertEquals("小满", SolarTerms.getTerm(2021, 5, 21));

		assertEquals("芒种", SolarTerms.getTerm(2021, 6, 5));

		assertEquals("夏至", SolarTerms.getTerm(2021, 6, 21));

		assertEquals("小暑", SolarTerms.getTerm(2021, 7, 7));

		assertEquals("大暑", SolarTerms.getTerm(2021, 7, 22));

		assertEquals("立秋", SolarTerms.getTerm(2021, 8, 7));

		assertEquals("处暑", SolarTerms.getTerm(2021, 8, 23));

		assertEquals("白露", SolarTerms.getTerm(2021, 9, 7));

		assertEquals("秋分", SolarTerms.getTerm(2021, 9, 23));

		assertEquals("寒露", SolarTerms.getTerm(2021, 10, 8));

		assertEquals("霜降", SolarTerms.getTerm(2021, 10, 23));

		assertEquals("立冬", SolarTerms.getTerm(2021, 11, 7));

		assertEquals("小雪", SolarTerms.getTerm(2021, 11, 22));

		assertEquals("大雪", SolarTerms.getTerm(2021, 12, 7));

		assertEquals("冬至", SolarTerms.getTerm(2021, 12, 21));
	}