pond-ts API Reference (core)
    Preparing search index...

    Class TimeRange

    A time interval event key with inclusive start and end boundaries. Example: new TimeRange({ start, end }).

    Implements

    Index

    Constructors

    Properties

    endMs: number
    kind: "timeRange" = 'timeRange'
    start: number

    Methods

    • Example: range.toJSON(). Returns { start, end } as ms-since-epoch numbers — the same shape JsonTimeRangeInput accepts, so the result round-trips through new TimeRange(range.toJSON()) and JSON wire formats. Implicitly invoked by JSON.stringify(range).

      Returns { end: number; start: number }

    • Example: range.toString(). Returns an ISO-8601 representation of the range as start/end, e.g. 2025-01-15T09:00:00.000Z/2025-01-15T10:00:00.000Z. Useful for debug logs and human-readable display.

      Returns string