effect-io-ai

Package: effect
Module: Duration

Duration.isGreaterThan

Checks whether the first Duration is greater than the second.

Example (Comparing durations with greater than)

import { Duration } from "effect"

const isGreater = Duration.isGreaterThan(Duration.seconds(5), Duration.seconds(3))
console.log(isGreater) // true

Signature

declare const isGreaterThan: { (that: Duration): (self: Duration) => boolean; (self: Duration, that: Duration): boolean; }

Source

Since v4.0.0