Expand description
Generators for sequences of calendar and business dates.
See dates for all-day calendars and bdates for business-day aware
variants.
use rustframe::utils::dateutils::{DatesList, DateFreq};
let list = DatesList::new("2024-01-01".into(), "2024-01-02".into(), DateFreq::Daily);
assert_eq!(list.count().unwrap(), 2);Re-exports§
pub use bdates::BDateFreq;pub use bdates::BDatesGenerator;pub use bdates::BDatesList;pub use dates::DateFreq;pub use dates::DatesGenerator;pub use dates::DatesList;
Modules§
- bdates
- This module provides functionality for generating and manipulating business dates.
It includes the
BDatesList, which emulates aDateListstructure and its properties. It usesDateListandDateListGenerator, adjusting the output to work on business dates. - dates
- Generation and manipulation of calendar date sequences.