Hyperlinkv0.8.0-beta.28

Duration

Duration.isGreaterThanconsteffect/Duration.ts:1574
(that: Duration): (self: Duration) => boolean
(self: Duration, that: Duration): boolean

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
predicates
export const isGreaterThan: {
  (that: Duration): (self: Duration) => boolean
  (self: Duration, that: Duration): boolean
} = order.isGreaterThan(Order)