All Projects → peer44 → workday

peer44 / workday

Licence: Apache-2.0 license
工作日api,java实现的工作日计算api。

Programming Languages

javascript
184084 projects - #8 most used programming language
java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to workday

cn-holiday
a lib for chinese holiday
Stars: ✭ 22 (-15.38%)
Mutual labels:  workday
Workday.WebServices
Workday API clients
Stars: ✭ 18 (-30.77%)
Mutual labels:  workday

工作日计算API

初始化工作

创建一个workday的数据库

src/main/resources/application.yml

里面的数据库地址,用户名,密码改成你自己的

  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://127.0.0.1:3306/workday
    username: root
    password: 你的密码

运行项目在

http://127.0.0.1/index

即可看到如下界面

工作日图片

节假日维护

通过上面的界面就可以维护节假日了

操作很简单,点击标记节假日,再次点击取消标记,这些数据都会保存到数据库

节假日计算

目前实现了两个方法

计算某天是不是工作日

某天之后/前多少天的工作日

节假日api

致谢

感谢这两位老铁,参照这两篇文章添加了农历

http://feifei.im/archives/168

https://blog.csdn.net/guogrower/article/details/79023423

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].