Skip to main content

system.kanoa.shift.getAllEventsInRange

This function requires KanoaOps module

Description

Gets all events in the specified range, applying an offset to show dates correctly on the calendar (kanoaOps).

Syntax

getAllEventsInRange(rangeStart, rangeEnd, assetPath='%', getSubAssets=True, showInherited=True, deviceUTCOffsetHrs=None)
  • Parameters
      rangeStart (Datetime) - Start date of the range.
      rangeEnd (Datetime) - End date of the range.
      assetPath (String) - Asset path or '%' for all.
      getSubAssets (Boolean) - Include sub-assets.
      showInherited (Boolean) - Show inherited shifts.
      deviceUTCOffsetHrs (Float) - Device UTC offset in hours.
  • Returns
      Schedule data (Dataset).
  • Code Example

    # Example Usage:
    scheduleData = system.kanoa.shift.getAllEventsInRange(someStartDate, someEndDate, 'someAssetPath', True, True, 5.5)