INNER CODE UNIT · Java

initialize

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

	public void initialize() {
		int year = localDate.getYear();
		int month = localDate.getMonthValue();
		int day = localDate.getDayOfMonth();
		this.gYear = year;
		this.gMonth = month;
		this.gDay = day;
		this.date = DateTimeConverterUtil.toDate(localDate);
		
		long[] l = calElement(year, month, day);
		
		this.lYear = (int) l[0];
		this.lMonth = (int) l[1];
		this.lDay = (int) l[2];
		
		this.suiCi = cyclical(this.lYear);
		this.lAnimal = animalsYear(this.lYear);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…