Giter Site home page Giter Site logo

san-holiday's Introduction

说明文档

获取全年的节假日,非工作日

1.修改DBhelper数据库配置文件
2.执行db.sql文件
3.配置getHolidays方法中的法定节假日和调休日期
4.运行getHolidays main方法

日期格式自定义getHolidays的SEPARATOR参数内容,用20190101或2019-01-01

另一种方法

调用api查询

http://api.goseek.cn/Tools/holiday?date=20180430 {"code":10000,"data":2} 返回数据:工作日对应结果为 0, 休息日对应结果为 1, 节假日对应的结果为 2 那么只要是0,就是工作日,for循环遍历全年的就可以了,但是每个公司会有不同的情况需要定制或者假期长度不一致,所以只能作为一个参考,

san-holiday's People

Contributors

lufei222 avatar

Watchers

 avatar

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.