Skip to content
YosoiDocs

Duration

yosoi.browser.Duration

class Duration(ImmutableModel):

Represent a persisted Rust duration with explicit units.

Attributes: secs: Whole unsigned seconds. nanos: Subsecond nanoseconds from zero through 999,999,999.

Source: python/yosoi/browser.py:470

Members below are declared on this class. Inherited Pydantic methods and generated constructor signatures are not expanded.

secs: U64
nanos: Annotated[int, Field(strict=True, ge=0, lt=1000000000)]