中國(guó)農(nóng)歷算法java實(shí)現(xiàn)
推薦 + 挑錯(cuò) + 收藏(0) + 用戶評(píng)論(0)
/**
* 中國(guó)農(nóng)歷算法 - 實(shí)用于公歷 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; // 負(fù)數(shù)表示閏月
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%
不好我反對(duì)
(0) 0%
下載地址
中國(guó)農(nóng)歷算法java實(shí)現(xiàn)下載
相關(guān)電子資料下載
- 一套java+ spring boot與 vue+ mysql技術(shù)開發(fā)的UWB高精度工廠人員定位全套系統(tǒng)源碼有 54
- Java開發(fā)者LLM實(shí)戰(zhàn)——使用LangChain4j構(gòu)建本地RAG系統(tǒng) 336
- 從多線程設(shè)計(jì)模式到對(duì) CompletableFuture 的應(yīng)用 56
- java模式開發(fā)的一套制造云MES工廠管理系統(tǒng)成品源碼介紹 180
- Java語(yǔ)言、idea開發(fā)工具、MYSQL數(shù)據(jù)庫(kù)開發(fā)的UWB定位技術(shù)系統(tǒng)源碼 118
- Java 智慧工地監(jiān)管平臺(tái)源碼 依托智慧工地平臺(tái),滿足省、市級(jí)住建數(shù)據(jù)監(jiān)管要求 234
- UWB室內(nèi)外高精度一體化融合定位系統(tǒng)源碼 UWB技術(shù)定位系統(tǒng)應(yīng)用場(chǎng)景 Java+Spring 147
- 基于java+單體服務(wù) +?硬件(UWB定位基站、卡牌)技術(shù)架構(gòu)開發(fā)的UWB室內(nèi)定位系統(tǒng) 159
- java開發(fā)的一套多端展示:web端、saas端、家長(zhǎng)端、教師端 132
- 一套java+ spring boot+與vue+ mysql技術(shù)開發(fā)的UWB高精度工廠人員定位全套系統(tǒng)源碼 398