effect-io-ai

Package: effect
Module: Duration

Duration.isLessThan

Checks whether the first Duration is less than the second.

Example (Comparing durations with less than)

import { Duration } from "effect"

const isLess = Duration.isLessThan(Duration.seconds(3), Duration.seconds(5))
console.log(isLess) // true

Signature

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

Source

Since v4.0.0