DurationValueTagged representation of a Duration value.
When to use
Use when modeling or inspecting the exact tagged representation stored in a
Duration, including finite millisecond or nanosecond values and infinite
sentinels.
Details
A duration is represented as milliseconds, nanoseconds, positive infinity, or negative infinity.
Source effect/Duration.ts:965 lines
export type type DurationValue =
| {
_tag: "Millis"
millis: number
}
| {
_tag: "Nanos"
nanos: bigint
}
| {
_tag: "Infinity"
}
| {
_tag: "NegativeInfinity"
}
Tagged representation of a Duration value.
When to use
Use when modeling or inspecting the exact tagged representation stored in a
Duration, including finite millisecond or nanosecond values and infinite
sentinels.
Details
A duration is represented as milliseconds, nanoseconds, positive infinity,
or negative infinity.
DurationValue =
| { _tag: "Millis"_tag: "Millis"; millis: numbermillis: number }
| { _tag: "Nanos"_tag: "Nanos"; nanos: bigintnanos: bigint }
| { _tag: "Infinity"_tag: "Infinity" }
| { _tag: "NegativeInfinity"_tag: "NegativeInfinity" }Referenced by 1 symbols