cal
cal copied to clipboard
Go (golang) calendar library for dealing with holidays and work days
There seems to be an assumption in the code that holidays that always fall on a Sunday, are not included in the holiday calendars. The most obvious example is Easter...
Hello, here in Argentina, we have a rule for promote turism, which adds Friday as holiday when the real one is Thursday, and adds Monday when it is Tuesday. Is...
I was reading the docs and searching in the code if is possible to add an interval time in a Workday. Like: ``` go c := cal.NewBusinessCalendar() c.SetWorkHours(time.Hour*9, time.Hour*18) ```...
Repulic of Korea holidays contains lunar calendar. - LunarNewYear - BuddhasDay - Chuseok and the Korean lunar calendar is different from that of China.
Noticed this typo while looking at #96.
This is a one-off public holiday for 2022 that will be observed by all of the states and territories. > The Prime Minister has [declared](https://www.pm.gov.au/media/commemorating-her-majesty-queen-elizabeth-ii) that Thursday 22 September 2022...
# Why 1. When the `startHour` and `endHour` the same, `IsWorkTime` returns incorrectly # What 1. Use time.Duration to check if the working time (time of date) is in the...
### Request Expose the business calendar's [`workday` array](https://github.com/rickar/cal/blob/master/v2/cal_business.go#L32) via a method. ### Details `workday` is currently private so custom workday function hooks are unable to reference it. I'd like to...