Skip to main content

OPEN_SENTINEL

Constant OPEN_SENTINEL 

Source
pub const OPEN_SENTINEL: &str = "9999-12-31T23:59:59.999999Z";
Expand description

The open-interval sentinel, in canonical form.

Widened from 9999-12-31T23:59:59Z in 0.5.4: a sentinel that is the one value exempt from the canonical width is a carve-out that reintroduces the very comparison bug the width exists to prevent. .999999 also makes the sentinel the maximum representable instant, so ts < OPEN_SENTINEL holds for every real timestamp — which is what a half-open interval needs.