1+ # Table of Contents
2+
3+ * [ ALToolbox.business\_ days] ( #ALToolbox.business_days )
4+ * [ standard\_ holidays] ( #ALToolbox.business_days.standard_holidays )
5+ * [ is\_ business\_ day] ( #ALToolbox.business_days.is_business_day )
6+ * [ get\_ next\_ business\_ day] ( #ALToolbox.business_days.get_next_business_day )
7+ * [ get\_ date\_ after\_ n\_ business\_ days] ( #ALToolbox.business_days.get_date_after_n_business_days )
8+
19---
210sidebar_label: business_days
311title: ALToolbox.business_days
412---
513
6- #### standard\_ holidays
14+ <a id =" ALToolbox.business_days.standard_holidays " ></a >
15+
16+ #### standard\_ holidays(year, country="US", subdiv="MA", add\_ holidays: Optional[ Mapping] = None, remove\_ holidays: Optional[ Iterable[ str]] = None)
17+
18+ ``` python
19+ def standard_holidays (
20+ year ,
21+ country = " US" ,
22+ subdiv = " MA" ,
23+ add_holidays : Optional[Mapping] = None ,
24+ remove_holidays : Optional[Iterable[str ]] = None
25+ ) -> holidays.HolidayBase
26+ ```
727
828Get all holidays in the specified year, country, and state (or other subdivision).
929Note that this draws on the & quot;holidays& quot; package which may deviate slightly from
@@ -24,7 +44,17 @@ the keys are datetime.date objects.
2444\}
2545```
2646
27- #### is\_ business\_ day
47+ <a id="ALToolbox.business_days.is_business_day"></a>
48+
49+ #### is\_business\_day(date: Union[str, DADateTime], country="US", subdiv="MA", add\_holidays: Optional[Mapping] = None, remove\_holidays: Optional[Iterable[str]] = None)
50+
51+ ```python
52+ def is_business_day(date: Union[str, DADateTime],
53+ country="US",
54+ subdiv="MA",
55+ add_holidays: Optional[Mapping] = None,
56+ remove_holidays: Optional[Iterable[str]] = None) -> bool
57+ ```
2858
2959Returns true if and only if the specified date is a business day (i.e., not a holiday)
3060in the specified jurisdiction. Business days are considered to be:
@@ -37,7 +67,19 @@ in the specified jurisdiction. Business days are considered to be:
3767assert(is_business_day("2023-03-26") == False)
3868```
3969
40- #### get\_ next\_ business\_ day
70+ <a id =" ALToolbox.business_days.get_next_business_day " ></a >
71+
72+ #### get\_ next\_ business\_ day(start\_ date: Union[ str, DADateTime] , wait\_ n\_ days=1, country="US", subdiv="MA", add\_ holidays: Optional[ Mapping] = None, remove\_ holidays: Optional[ Iterable[ str]] = None)
73+
74+ ``` python
75+ def get_next_business_day (
76+ start_date : Union[str , DADateTime],
77+ wait_n_days = 1 ,
78+ country = " US" ,
79+ subdiv = " MA" ,
80+ add_holidays : Optional[Mapping] = None ,
81+ remove_holidays : Optional[Iterable[str ]] = None ) -> DADateTime
82+ ```
4183
4284Returns the first day AFTER the specified start date that is
4385not a federal or state holiday, Saturday or Sunday. Optionally,
@@ -61,7 +103,19 @@ https://github.com/dr-prodigy/python-holidays/tree/master/holidays/countries
61103 will add those holidays to be considered
62104- `remove_holidays` - the list of date strings (& quot;12 / 25 & quot;) of dates that are no longer holidays
63105
64- #### get\_ date\_ after\_ n\_ business\_ days
106+ < a id = " ALToolbox.business_days.get_date_after_n_business_days" >< / a>
107+
108+ # ### get\_date\_after\_n\_business\_days(start\_date: Union[str, DADateTime], wait\_n\_days=1, country="US", subdiv="MA", add\_holidays: Optional[Mapping] = None, remove\_holidays: Optional[Iterable[str]] = None)
109+
110+ ```python
111+ def get_date_after_n_business_days (
112+ start_date : Union[str , DADateTime],
113+ wait_n_days = 1 ,
114+ country = " US" ,
115+ subdiv = " MA" ,
116+ add_holidays : Optional[Mapping] = None ,
117+ remove_holidays : Optional[Iterable[str ]] = None ) -> DADateTime
118+ ```
65119
66120Returns a time period which contains a minimum of `n` business days.
67121
0 commit comments