martinjw/Holiday

Add holiday name information to Holiday object

Opened this issue · 1 comments

I'm using the new USAPublicHoliday().GetHolidaysInDateRange(startDate, endDate); function to get the holidays based on our time frame, which isn't 1/1/xxxx - 12/31/xxxx, its more like 2/1 - 1/31.

It requires multiple calls to get the holiday names using new USAPublicHoliday().PublicHolidayNames(year); because it has to run for two years and then do some filtering based on dates.

It would be nice if the name of the holiday was just included on the object returned from the GetHolidaysInDateRange() call.

Great library and project!

In version 2.9, I added the name in the Holiday class. I will adjust the USAPublicHoliday class for use in my next update.