ScheduleIntersection

ScheduleIntersection#

class sigtech.framework.schedules.schedule.ScheduleIntersection

Baseclasses: ScheduleBase

A schedule based on business days being the intersection of the business days on the underlying schedules. Reference datetimes are taken from the first schedule.

Keyword arguments:

  • Schedules - list of schedules.

Example object creation:

import datetime as dtm
from sigtech.framework.schedules.schedule import ScheduleDaily, ScheduleIntersection

schedule_daily_one = ScheduleDaily(
                         dtm.date(2012, 12, 3),
                         dtm.date(2012, 12, 31),
                         'London'
                    )

schedule_daily_two = ScheduleDaily(
                         dtm.date(2012, 12, 3),
                         dtm.date(2012, 12, 31),
                         'New York'
                    )

intersection = ScheduleIntersection([schedule_daily_one, schedule_daily_two])
classmethod from_schedules(schedules: list[sigtech.framework.schedules.schedule.Schedule]) Any

Return a new schedule object given a list of schedule objects.

Parameters:

schedules – List of Schedule objects.

Returns:

New schedule object.