INNER CODE UNIT · Java

num

xkzhangsan/xk-time · src/main/java/com/xkzhangsan/time/LunarDate.java:473

		int num = year - 1900 + 36;
		return (cyclicalm(num));
	}
	
	/**
	 * 计算某年第n个节气的天
	 * @param year 公历年
	 * @param n 第n个节气
	 * @return int
	 */
	public static final int solarTerm(int year, int n){
		LocalDateTime startLocalDateTime = LocalDateTime.of(1900,1,6,2,5);
		long millis = (long) ((31556925974.7*(year-1900) + solarTermInfo[n]*60000));
		LocalDateTime tempLocalDateTime = DateTimeCalculatorUtil.plusMillis(startLocalDateTime, millis);
		return tempLocalDateTime.getDayOfMonth();
	}

	/**

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…