Skip to content

TimestampRangeValue

CEL runtime value for one half-open timestamp range [start, end).

An empty range is valid when start equals end; a range whose start is after its end is invalid.

  • Val

new TimestampRangeValue(start, end): TimestampRangeValue

Creates a range with an inclusive start and exclusive end.

Timestamp$1

Timestamp$1

TimestampRangeValue

readonly end: Timestamp$1

Exclusive upper bound of the range.


readonly start: Timestamp$1

Inclusive lower bound of the range.

contains(value): boolean

Reports whether the range contains a timestamp.

Timestamp$1

boolean


convertToNative(typeDesc?): unknown

Returns this value for its own native type and rejects other conversions.

unknown

unknown

Val.convertToNative


convertToType(typeValue): Val

Converts only to this opaque CEL type or CEL’s type value.

Type

Val

Val.convertToType


equal(other): Val

Compares both bounds with timestamp precision.

Val

Val

Val.equal


overlaps(other): boolean

Reports whether two half-open ranges share at least one timestamp.

TimestampRangeValue

boolean


type(): Type

Returns the opaque CEL type of this range.

Type

Val.type


value(): unknown

Returns both bounds in a CEL-native object.

unknown

Val.value