Function contains

  • Checks if the first timespan contains the second timespan.

    Parameters

    • ts1: ITimestampStruct

      Start of container timespan.

    • span1: number

      Length of container timespan.

    • ts2: ITimestampStruct

      Start of contained timespan.

    • span2: number

      Length of contained timespan.

    Returns boolean

    Returns true if the first timespan contains the second timespan.