Skip to main content

Module range

Module range 

Source
Expand description

Plain and business-day range iteration helpers.

Constants§

STANDARD_WEEKMASK
Standard Mon–Fri weekmask.

Functions§

business_day_range
Inclusive business-day range. weekmask[i] is true if weekday i (Mon=0 … Sun=6) is a business day. holidays is a set of dates to exclude regardless of weekday.
business_days_between
Number of business days in [start, end] inclusive.
date_range
Inclusive calendar-day range with a fixed integer step (days).
next_business_day
Move to the next business day strictly after d.
previous_business_day
Move to the previous business day strictly before d.