def over.now

ezx@1.11.0.0 · src/ez/timer.bend:36

import ezx@1.11.0.0/src/ez/timer.bend as Timer
import Base
import snap@1.4.0.0/main.bend as R

36# whether the deadline has gone by
37def over.now(+deadline: String) -> IO(Bool):
38  do IO<Bool>:
39    +now : String <- R.exec(["date", "+%s"])
40    +cmp : String <- R.exec(["test", String.trim(R.text(now)), "-gt", deadline])
41    return R.ok(cmp)

Uses (10)

Used by (1)