iceworkday工作日算法
该工作日算法的有效计算范围为 2001年--3100年。
对2020年及以前的节假日进行了精确枚举。
WorkUtils.weekendMap(year)方法用于计算节某一年假日map,传入年的字符串
WorkUtils.isWorkendDay(ymd)方法用于判断某一天是否为节假日,传入年月日字符串
main方法测试:
System.out.println(WorkUtils.weekendMap("2020")); System.out.println(WorkUtils.isWorkendDay("20210212"));
maven依赖
<!--节假日算法-->
<dependency>
<groupId>com.icexxx</groupId>
<artifactId>iceworkday</artifactId>
<version>2.0.2.0</version>
</dependency>
github地址:https://github.com/iceenongli/iceworkday