botant / py-business-calendar

Business days and custom calendar calculations for Python
MIT License
26 stars 11 forks source link

Issue when holiday is on weekend #14

Open jacksoncoutinho opened 2 months ago

jacksoncoutinho commented 2 months ago

When we are passing holiday as weekend, business_calender will return as a weekend, but my requirement is holiday should be the priority i.e.

import datetime
from business_calendar import Calendar
cal = Calendar(holidays=['2024-6-15'])
cal.isholiday(datetime.datetime(2024,6,15))

isholiday returns False even though it is marked as holiday, is there any workaround for this ?