HolidayUtil

package
v1.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

@Title HolidayUtil @Description 法定节假日工具(自2001年12月29日起) @Author 6tail

Index

Constants

This section is empty.

Variables

View Source
var NAMES = []string{"元旦节", "春节", "清明节", "劳动节", "端午节", "中秋节", "国庆节", "国庆中秋", "抗战胜利日"}

Functions

func Fix

func Fix(nms []string, dt string)

func GetHoliday

func GetHoliday(ymd string) *calendar.Holiday

func GetHolidayByYmd

func GetHolidayByYmd(year int, month int, day int) *calendar.Holiday

func GetHolidays

func GetHolidays(ymd string) *list.List

func GetHolidaysByTarget

func GetHolidaysByTarget(ymd string) *list.List

func GetHolidaysByTargetYmd

func GetHolidaysByTargetYmd(year int, month int, day int) *list.List

func GetHolidaysByYear

func GetHolidaysByYear(year int) *list.List

func GetHolidaysByYm

func GetHolidaysByYm(year int, month int) *list.List

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL