Skip to main content

system.kanoa.schedule.checkEventsOverlap

Description

Checks to see if there is any overlap between two lists of time intervals.

Syntax

checkEventsOverlap(eventsToScheduleList, scheduledEventsList)

Parameters:
  • eventsToScheduleList (list[dict]): List of events to schedule.
  • scheduledEventsList (list[dict]): List of already scheduled events.

  • Returns:
  • overlappingScheduleBlockList (list[dict]): List of overlapping schedule blocks.
  • Dictionary

    Dictionary for eventsToScheduleList
    ParameterTypeRequiredNotes
    startDatedatetimeStart of the time interval
    endDatedatetimeEnd of the time interval

    Dictionary

    Dictionary for scheduledEventsList
    ParameterTypeRequiredNotes
    startDatedatetimeStart of the scheduled event
    endDatedatetimeEnd of the scheduled event
    scheduleBlockInfodictDetails of the scheduled block