TimeFrame.of

time.TimeFrame.of(start_date, duration_days)

Alternate constructor: start date and a given duration in days.

Parameters

start_date: date | str

The starting date. If a date is passed as a string, it will be parsed using ISO-8601 format.

duration_days: int

The number of days in the time frame, including the first day.