All Projects → zhusaidong → HolidayApi

zhusaidong / HolidayApi

Licence: Apache-2.0 license
节假日api

Programming Languages

PHP
23972 projects - #3 most used programming language

Labels

Projects that are alternatives of or similar to HolidayApi

goholiday
Calculating (holiday, business) days support for golang (Go language).
Stars: ✭ 22 (-54.17%)
Mutual labels:  holiday
Holiday
Check whether a date is a holiday
Stars: ✭ 49 (+2.08%)
Mutual labels:  holiday
pholiday
a persian calendar holidays library for javascript
Stars: ✭ 38 (-20.83%)
Mutual labels:  holiday
public-holidays-js
Public holidays by country. Readonly from google calendar. Nodejs module.
Stars: ✭ 18 (-62.5%)
Mutual labels:  holiday
shukujitsu
No description or website provided.
Stars: ✭ 49 (+2.08%)
Mutual labels:  holiday
moment-holiday
A Moment.js plugin for handling holidays. NO LONGER MAINTAINED (DEPRECATED)
Stars: ✭ 82 (+70.83%)
Mutual labels:  holiday
cn-holiday
a lib for chinese holiday
Stars: ✭ 22 (-54.17%)
Mutual labels:  holiday
holidata
Holidata is the core of holidata.net, a no-nonsense, ad-free provider of international holiday data.
Stars: ✭ 27 (-43.75%)
Mutual labels:  holiday

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也属于节假日
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].