中国农历算法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