rickar / cal

Go (golang) calendar library for dealing with holidays and work days
BSD 3-Clause "New" or "Revised" License
360 stars 121 forks source link

IsWorkDay in China #106

Open okhowang opened 1 year ago

okhowang commented 1 year ago

in China, there is a scheme as https://en.wikipedia.org/wiki/Public_holidays_in_China#Weekend_shifting_scheme_(since_2014) when in long vocation, Sunday may become workday. IsWorkDay judge weekday before holiday. it may not work for China

rickar commented 1 year ago

This kind of thing is what I was expecting BusinessCalendar.WorkdayFunc to be used for.