Coder Social home page Coder Social logo

holidayapi's Introduction

HolidayApi

节假日api

运行index.php

  • demo

DEMO

  • 返回json
[
  {
    "date":"2017-10-05",
    "code":1,
    "info":"节假日",
    "describe":
    {
      "Time":"10月1日",
      "Name":"国庆节",
      "EnglishName":"National Day",
      "IsNotWork":1,
      "Start":0,
      "End":7
    }
  }
]
  • 说明
code = 0
  工作日:周一至周五
code = 1
  节假日
code = 2
  双休日:周六周日
  • 功能
 加入节假日时间段,节假日不放假
 	1.节假日当天前后几天能放假的都算节假日
 		如:10.1国庆节,但是放假7天,所以10.1-10.7都算节假日
 	2.有些节日不放假,算工作日
 		如:2.2世界湿地日,但是不放假,所以算工作日
  • TODO
节假日叠加问题
  因为国庆节和中秋节重叠,使得2017.10.8也属于节假日

holidayapi's People

Contributors

zhusaidong 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.