- Categories:
PERIOD_ OVERLAPS¶
Returns TRUE if two PERIOD values share any instant.
- See also:
Syntax¶
Arguments¶
period1The first PERIOD value.
period2The second PERIOD value. Must have the same element type as
period1.
Returns¶
BOOLEAN.
Usage notes¶
- TRUE when
PERIOD_BEGIN(period1) < PERIOD_END(period2)andPERIOD_BEGIN(period2) < PERIOD_END(period1). - Adjacent periods that meet at a shared boundary (for example,
[a, b)and[b, c)) do not overlap. - The function is symmetric:
PERIOD_OVERLAPS(p1, p2)equalsPERIOD_OVERLAPS(p2, p1).
Examples¶
This example shows two periods that share instants (overlap), and two adjacent periods that meet at a boundary without overlapping: