Documentation
¶
Index ¶
- func AddYearYAML(year int, data []byte) error
- func Day(year, month, day int) time.Time
- func IsWorkday(tm time.Time) bool
- func NextHoliday() (int, string)
- func NextHolidayForDate(date time.Time) (int, string)
- func NextWorkday() int
- func NextWorkdayForDate(date time.Time) int
- func Override(day time.Time, holidayName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddYearYAML ¶
AddYearYAML 添加 (如果已存在则覆盖) 某年的一个配置, 配置只支持 MM-DD 格式, yaml 格式
func NextHolidayForDate ¶
NextHolidayForDate 返回指定日期的下一个假日在几天后, 以及假日的名称。如果当天是假日, 则返回 0
func NextWorkdayForDate ¶
NextWorkdayForDate 返回指定日期的下一个工作日在几天后, 如果今天是假日, 则返回 1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.