src.system.projection.scripts.get_xversaries.get_xversaries¶
- src.system.projection.scripts.get_xversaries.get_xversaries(issue_date: date, start_date: date, end_date: date, frequency: int) List[date]¶
Gets X-iversaries between two dates, where X could be a ann-, month-, quarter-, etc… For example, if the issue date is 3/16/2023, and we want to get all the anniversaries between 7/16/2023 and 5/16/2026, the function will return 3/16/2024, 3/16/2025, and 3/16/2026.
- Parameters:
issue_date – First X-iversary date.
start_date – Search start date.
end_date – Search end date.
frequency – Months between X-iversaries.
- Returns:
List of X-iversaries between two dates.