Documentation ¶
Overview ¶
Package HolidayUtil @Title HolidayUtil @Description 法定节假日工具(自2001年12月29日起) @Author 6tail
Index ¶
- Variables
- func Fix(nms []string, dt string)
- func GetHolidays(ymd string) *list.List
- func GetHolidaysByTarget(ymd string) *list.List
- func GetHolidaysByTargetYmd(year int, month int, day int) *list.List
- func GetHolidaysByYear(year int) *list.List
- func GetHolidaysByYm(year int, month int) *list.List
- type Holiday
- func (holiday *Holiday) GetDay() string
- func (holiday *Holiday) GetName() string
- func (holiday *Holiday) GetTarget() string
- func (holiday *Holiday) IsWork() bool
- func (holiday *Holiday) SetDay(day string)
- func (holiday *Holiday) SetName(name string)
- func (holiday *Holiday) SetTarget(target string)
- func (holiday *Holiday) SetWork(work bool)
- func (holiday *Holiday) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var NAMES = []string{"元旦节", "春节", "清明节", "劳动节", "端午节", "中秋节", "国庆节", "国庆中秋", "抗战胜利日"}
Functions ¶
func GetHolidays ¶
func GetHolidaysByTarget ¶ added in v1.0.18
func GetHolidaysByYear ¶
Types ¶
type Holiday ¶ added in v1.3.1
type Holiday struct {
// contains filtered or unexported fields
}
Holiday 节假日
func GetHoliday ¶
func NewHoliday ¶ added in v1.3.1
Click to show internal directories.
Click to hide internal directories.