INNER CODE UNIT · Java

millis

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

		long millis = (long) ((31556925974.7*(year-1900) + solarTermInfo[n]*60000));
		LocalDateTime tempLocalDateTime = DateTimeCalculatorUtil.plusMillis(startLocalDateTime, millis);
		return tempLocalDateTime.getDayOfMonth();
	}

	/**
	 * 传出year年month月day日对应的农历.year0 .month1 .day2 .yearCyl3 .monCyl4 .dayCyl5
	 * .isLeap6.solarTermIndex7
	 *
	 * @param year 年
	 * @param month 月
	 * @param day 日
	 * @return long[]
	 */
	public static final long[] calElement(int year, int month, int day) {
		long[] nongDate = new long[8];
		int i = 0, temp = 0, leap = 0;
		LocalDateTime baseDate = LocalDate.of(1900, 1, 31).atStartOfDay();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…