system.kanoa.shift.getAllEventsInRange
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)- 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.
- Schedule data (Dataset).
Code Example
# Example Usage:
scheduleData = system.kanoa.shift.getAllEventsInRange(someStartDate, someEndDate, 'someAssetPath', True, True, 5.5)