rickar / cal

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

Holidays need duration #105

Open okhowang opened 1 year ago

okhowang commented 1 year ago

In some country, holiday may last several days, for example china spring festival, korea lunar new year. in https://github.com/rickar/cal/pull/63, three holidays are defined. BeforeLunarNewYear/LunarNewYear/AfterLunarNewYear. If holiday has duration, it can be more graceful

rickar commented 1 year ago

Agreed. It may require a special flag to mark extended holidays so the existing logic is kept simple.