package lunar

  1. Overview
  2. Docs

Module Duration.Infix

Common and useful infix operators.

val (+) : t -> t -> t

d1 + d2 is add d1 d2, see add.

val (-) : t -> t -> t

d1 - d2 is sub d1 d2, see sub.

val (*) : t -> int -> t

d * i is mul d i, see mul.

val (=) : t -> t -> bool

v1 = v2 is equal v1 v2.

val (<>) : t -> t -> bool

v1 <> v2 is not (equal v1 v2).

val (>) : t -> t -> bool

v1 > v2 returns true if v1 is greater than v2, false otherwise.

val (>=) : t -> t -> bool

v1 >= v2 returns true if v1 is greater or equal to v2, false otherwise.

val (<) : t -> t -> bool

v1 < v2 returns true if v2 is greater than v1, false otherwise.

val (<=) : t -> t -> bool

v1 <= v2 returns true if v2 is greater or equal to v1, false otherwise.