TimeSelector.range

time.TimeSelector.range(from_date, to_date, step=None)

Subset the time frame by providing the start and end date (inclusive).

Parameters

from_date: date | str

the starting date of the range, as a date object or an ISO-8601 string

to_date: date | str

the last included date of the range, as a date object or an ISO-8601 string

step: int = None

if given, narrow the selection to a specific tau step (by index) within the date range; by default include all steps

Returns

TimeSelection

The selection strategy object.