holiday_cn

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 6 Imported by: 1

README

holiday-cn

China holiday helper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHoliday

func IsHoliday(t time.Time) bool

IsHoliday 是否是假期

func IsOffDay

func IsOffDay(t time.Time) bool

IsOffDay 是否是休息日

func IsRestDay

func IsRestDay(t time.Time) bool

IsRestDay 是否是调休日

func IsWeekend

func IsWeekend(t time.Time) bool

IsWeekend 是否是周末

Types

type Holiday

type Holiday struct {
	Time      *time.Time
	Name      string
	IsHoliday bool
	IsOffDay  bool
	IsWeekend bool
	IsRestDay bool
	Wage      int8
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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