中國農歷算法java實現
/**
* 中國農歷算法 - 實用于公歷 1901 年至 2100 年之間的 200 年
*/
import java.text.*;
import java.util.*;
class ChineseCalendarGB {
private int gregorianYear;
private int gregorianMonth;
private int gregorianDate;
private boolean isGregorianLeap;
private int dayOfYear;
private int dayOfWeek; // 周日一星期的第一天
private int chineseYear;
private int chineseMonth; // 負數表示閏月
private int chineseDate;
private int sectionalTerm;
private int principleTerm;
private static char[] daysInGregorianMonth =
{31,28,31,30,31,30,31,31,30,31,30,31};
private static String[] stemNames =
{"甲","乙","丙","丁","戊","己","庚","辛","壬","癸"};
private static String[] branchNames =
{"子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"};
private static String[] animalNames =
{"鼠","牛","虎","兔","龍","蛇","馬","羊","猴","雞","狗","豬"};
public static void main(String[] arg) {
ChineseCalendarGB c = new ChineseCalendarGB();
非常好我支持^.^
(1) 100%
不好我反對
(0) 0%
下載地址
中國農歷算法java實現下載
相關電子資料下載
- 一套java+ spring boot與 vue+ mysql技術開發的UWB高精度工廠人員定位全套系統源碼有 54
- Java開發者LLM實戰——使用LangChain4j構建本地RAG系統 336
- 從多線程設計模式到對 CompletableFuture 的應用 56
- java模式開發的一套制造云MES工廠管理系統成品源碼介紹 180
- Java語言、idea開發工具、MYSQL數據庫開發的UWB定位技術系統源碼 118
- Java 智慧工地監管平臺源碼 依托智慧工地平臺,滿足省、市級住建數據監管要求 234
- UWB室內外高精度一體化融合定位系統源碼 UWB技術定位系統應用場景 Java+Spring 147
- 基于java+單體服務 +?硬件(UWB定位基站、卡牌)技術架構開發的UWB室內定位系統 159
- java開發的一套多端展示:web端、saas端、家長端、教師端 132
- 一套java+ spring boot+與vue+ mysql技術開發的UWB高精度工廠人員定位全套系統源碼 398