Skip to main content

system.kanoa.shift.getShiftCalendarEvents

Description

Returns the shift calendar event for the given parameters. It will combine an assets shifts with any inherited shifts

Syntax

getShiftCalendarEvents(paramsDict)
  • Parameters
      paramsDict (dict)
      - startDate (datetime)
      - endDate (datetime)
      - assetPath (string)
      - includeInherited (bool)
      - includeSubAssets (bool)
      - tzOffsets (dict)
  • Returns
      Schedule data (Dataset).
  • Code Example

    startDate = system.date.parse("2025-01-01 00:00:00")
    endDate = system.date.parse("2025-01-07 00:00:00")
    tzOffsets = {'Pacific Standard Time': {startOffsetMins': -480, 'endOffSetMins': -480}}
    paramsDict = {'assetPath': 'Kanoa Industries\Adelaide Hills\Packaging\Line 1, 'startDate': startDate, 'endDate': endDate, 'tzOffsets': tzOffsets}
    scheduleData = system.kanoa.shift.getShiftCalendarEvents(paramsDict)