Expand description
This module provides functionality for generating and manipulating business dates.
It includes the BDatesList
, which emulates a DateList
structure and its properties.
It uses DateList
and DateListGenerator
, adjusting the output to work on business dates.
Structs§
- BDates
Generator - An iterator that generates a sequence of business dates based on a start date, frequency, and a specified number of periods.
- BDates
List - Represents a list of business dates generated between a start and end date at a specified frequency. Provides methods to retrieve the full list, count, or dates grouped by period.
Functions§
- find_
first_ bdate_ on_ or_ after - find_
next_ bdate - get_
bdates_ list_ with_ freq - Helper function to get a list of business dates based on the frequency.
- is_
business_ date - Check if the date is a weekend (Saturday or Sunday).
Type Aliases§
- BDate
Freq - Type alias for
DateFreq
to represent business date frequency.