Giter Site home page Giter Site logo

tiansh / gzr Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 0.0 11 KB

我在写 iOS 的快捷指令(shortcuts)的时候需要有个方法来判断是不是工作日…… // Is some day workday in China? Use stupid HTTP query for checking Chinese workdays / weekends.

china workday weekend holiday

gzr's Introduction

我在写 iOS 的快捷指令(shortcuts)的时候需要有个方法来判断是不是工作日……所以解决办法就成了这样了。

具体使用的时候:

  1. 先格式化日期,日期格式自定,格式化字串

    'https://tiansh.github.io/gzr/'yyyy/M/d'.json'

  2. 然后获取“格式化后的日期”内容

  3. 最后匹配“URL的内容”中的“true”

节假日仅包含全国性节假日,不包含地区节假日。


Workdays in P.R.China; query 'https://tiansh.github.io/gzr/'yyyy/M/d'.json', response json will be {"isWorkday":false} or {"isWorkday":true}. Support year 2019-2024. Only national holidays are inclcuded.

gzr's People

Contributors

tiansh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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