effect-io-ai

Package: effect
Module: Duration

Duration.negate

Returns the negated duration.

Example (Negating durations)

import { Duration } from "effect"

Duration.toMillis(Duration.negate(Duration.seconds(5))) // -5000
Duration.negate(Duration.infinity) === Duration.negativeInfinity // true

Signature

declare const negate: (self: Duration) => Duration

Source

Since v4.0.0