Skip to content

Add function for checking ranges are currently valid #408

Description

@TeofilC

In the CircuitHub codebase we have:

-- | @range \@> now()@: true when the current timestamp falls within the range.
currentlyValid :: Expr (Range UTCTime) -> Expr Bool
currentlyValid range = rawBinaryOperator "@>" range now

we should upstream this or something similar, since this is something we want to quite often do with ranges.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions