Trim

Trims any start and end times outside the range of the frame.

Parameters

No Parameters

Description

This function filters each item in the list, trimming the StartTime and EndTime columns in the table to fit within the frame time.

This function is often used after loading times from events or an API.

Example

If the frame contains the following table…

StartTimeEndTimeName
02:00 AM04:00 AMEarly Morning
04:00AM06:00 AMMorning

…and the frame itself contained…

PropertyValue
StartTime03:00 AM
EndTime05:00 AM

Then the following JSON

{
   "type": "trim"
}

Would limit the 'Start' and 'End' values in the table to match those of the frame.

StartTimeEndTimeName
03:00 AM04:00 AMEarly Morning
04:00AM05:00 AMMorning