Skip to content

duration

duration #

The duration JSON scalar.

Duration #

Bases: JSONScalar

A span of time; seconds on the wire, a timedelta in Python.

Source code in capturegraph-lib/capturegraph/types/scalars/time/duration.py
class Duration(JSONScalar, name="edu.cornell.duration"):
    """A span of time; seconds on the wire, a ``timedelta`` in Python."""

    value: Annotated[timedelta, Seconds]