GithubHelp home page GithubHelp logo

iceenongli / iceworkday Goto Github PK

View Code? Open in Web Editor NEW
89.0 5.0 27.0 40 KB

iceworkday工作日算法 工作日算法又称节假日算法。 由于工作日计算涉及农历节气等,而农历算法本身就是非常复杂的,所以工作日算法非常的复杂 。 该算法解决了工作日的计算问题。对以往的数据确保其准确性,对将来的数据提供尽可能准确的 预测。 由于未来的数据是未知的,为了在将来使该算法对已发生的数据具有准确性,该算法提供了配置 文件纠错机制。 该工作日算法的有效计算范围为 2001年--3100年。 对2017年及以前的节假日进行了精确枚举。 WorkUtils.weekendMap(year)方法用于计算节某一年假日map,传入年的字符串。 WorkUtils.isWorkendDay(ymd)方法用于判断某一天是否为节假日,传入年月日字符串。

License: Apache License 2.0

Java 100.00%

iceworkday's Introduction

iceworkday

iceworkday工作日算法

工作日算法又称节假日算法。 由于工作日计算涉及农历节气等,而农历算法本身就是非常复杂的,所以工作日算法非常的复杂。 该算法解决了工作日的计算问题。对以往的数据确保其准确性,对将来的数据提供尽可能准确的预测。 由于未来的数据是未知的,为了在将来使该算法对已发生的数据具有准确性,该算法提供了配置文件纠错机制。 该工作日算法的有效计算范围为 2001年--3100年。 对2020年及以前的节假日进行了精确枚举。 WorkUtils.weekendMap(year)方法用于计算节某一年假日map,传入年的字符串。 WorkUtils.isWorkendDay(ymd)方法用于判断某一天是否为节假日,传入年月日字符串。

| 注意: | | 该算法对将来的日期仅是预测,并不能绝对准确! |

该算法已提交maven**仓库, maven依赖如下:
<dependency>
  <groupId>com.icexxx</groupId>
  <artifactId>iceworkday</artifactId>
  <version>2.0.2.0</version>
</dependency>
maven依赖如下: com.icexxx iceworkday 2.0.2.0

iceworkday's People

Contributors

iceenongli avatar icewod avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

iceworkday's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.