timeSpanUnion function

Combines overlapping time spans into single time spans.

Parameters:

  • timespans - An array of TimeSpan objects to unify. Returns: An array of unified TimeSpan objects.

TimeSpan type

Represents a span of time with a starting point and a duration in minutes.

Migrated from folder: HomeAutomation/Helpers/timeSpanUnion