You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to determine if there are any holidays in the near future, expressed as a timedelta. More generally, maybe just between two dates.
I don't recall holidays having built-in functionality for that. However, it sounds to me like something that could be useful for the end-users.
PRs welcome. Or you may get lucky if @KJhellico or me will be able to find some time this month. Perhaps, by extending holidays.utils.country_holidays() (and similar) with before_date and after_date args.
Yeah, it's up to you. I believe any PR would require some research of the existing code base, project architecture and generally used approaches. I suggest looking at some of the most recent PRs (perhaps, changes related to HolidayBase would be the most useful).
Just make sure to let us know if you decide to work on this so no work would be done twice.
I'd like to be able to determine if there are any holidays in the near future, expressed as a
timedelta
. More generally, maybe just between two dates.Pseudocode:
It's not clear if holidays supports just checking certain dates in order for developers to be able to implement this ourselves. It seems sort of there, except that I wonder what happens due to the year handling if the next sixty days includes both December and January. Based on the design of
_add_holiday()
, they're seemingly stored in a year-specific fashion:https://github.com/vacanza/python-holidays/blob/fde28db1d17e05e0853585936b8b8f85e9e38d34/holidays/holiday_base.py#L737
Suggestions?
The text was updated successfully, but these errors were encountered: