Module bdates

Source
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§

BDatesGenerator
An iterator that generates a sequence of business dates based on a start date, frequency, and a specified number of periods.
BDatesList
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§

BDateFreq
Type alias for DateFreq to represent business date frequency.