portfolio_toolkit.utils.period.period module
- class portfolio_toolkit.utils.period.period.Period(label: str, start_date: date, end_date: date)[source]
Bases:
object
Represents a time period with a label and start/end dates.
- start_date
Start date of the period
- Type:
date
- end_date
End date of the period
- Type:
date
Example
quarter = Period(“Q3 2025”, date(2025, 7, 1), date(2025, 9, 30)) month = Period(“July 2025”, date(2025, 7, 1), date(2025, 7, 31))