Package: effect
Module: Duration
Represents a span of time with high precision, supporting operations from nanoseconds to weeks.
When to use
Use to model elapsed time, delays, timeouts, schedule intervals, and cache TTLs as immutable duration values.
See
Input for values accepted by APIs that decode duration-like
inputsDurationValue for the tagged representation exposed by the
value fieldSignature
export interface Duration extends Equal.Equal, Pipeable, Inspectable.Inspectable {
readonly [TypeId]: typeof TypeId
readonly value: DurationValue
}
Since v2.0.0