zcollection.merging.period.Period.span#

Period.span(other)[source]#

Combine two periods with earliest start and latest end.

Combines two periods and any gap between them such that
  • start = min(p1.start, p2.start)

  • end = max(p1.end , p2.end)

[---p1---]
               [---p2---]

result:

[-----------p3----------]
Parameters:

other (Period) – The other period to combine.

Returns:

The combined period.

Return type:

Period