Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/ysluckly/chinese-holiday

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/ysluckly/chinese-holiday

  • v1.0.0
  • Source
  • Go
  • Socket score

Version published
Created
Source

chinese-holidays-go

badge

提供具有中国特色的休假安排或者工作日查询。

Install

go get github.com/ysliving/chinese-holiday

Usage

import (
    "github.com/ysliving/chinese-holiday/holidays"
)

func main{
    d := time.Date(2019, 10, 1, 0, 0, 0, 0, china)
    dStr := "2019-10-01 00:00:00"
    holidays.IsHoliday(d)    // true
    holidays.IsWorkingday(d) // false
    holidays.GetTNthWorkingDay(d,3) // 距d的第三个工作日(time param)
    holidays.GetSNthWorkingDay(dStr,3) // 距d的第三个工作日(string param)   
    return
}

Features

假期政策查询

  • bundled data
  • online data

Other

json -> 二进制命令 eg: statik -src=./data

详见:statik命令使用

FAQs

Package last updated on 07 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc